Installing Ruby using rbenv on Ubuntu 14.04 virtualbox hangs

pravin picture pravin · May 30, 2014 · Viewed 8.9k times · Source

I'm trying to get the Ruby on Rails running on Ubuntu 14.04. The Ubuntu is installed on VirtualBox. I'm following https://gorails.com/setup/ubuntu/14.04

When I run the command

rbenv install 2.1.2

Ruby keeps installing forever. I waited for more than 1 hour.

This is how the command-line looks:

rbenv install 2.1.2Downloading ruby-2.1.2.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635
Installing ruby-2.1.2...

Any suggestion?

Answer

Scot Bernard picture Scot Bernard · Aug 8, 2014

I thought the installation where frozen in the same point, but it just takes a long time to complete (1 hour and still running). To see the installation progress add the verbose modifier to the command:

~$rbenv install --verbose 2.1.2

Note: I followed the Deploy Ruby on Rails instructions for Ubuntu 14.04.