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?
Same thing here running rbenv install 2.1. 9 , it took 5-6 minutes to finish.
rbenv is included in all installations of Bitnami Ruby stack that use system packages. It is a command-line tool which allows you to easily install, manage, and work with multiple Ruby environments. Every installed Ruby interpreter using rbenv is isolated in its own directory with its libraries and gems.
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.
I found a solution that worked for me.
After about 20 minutes of it hanging this error popped up (some of the details cut out):
BUILD FAILED (some extra details...) The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
I then found and followed the answer in this blog post. It directs you to enter this command on the command line sudo apt-get install libssl-dev
. After installing libssl-dev (extra details about it in the blog post) I was able to successfully install Ruby 2.1.2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With