Ruby on rails installation error – Halting the installation


Symtom: When you excute the command rvm install X.X.X you will be getting an error message

ERROR: Error running ‘make ‘, please read /usr/share/ruby-rvm/log/ruby-1.9.2-p180/make.log & ERROR: There has been an error while running make. Halting the installation.”

When you see the make.log, you will see the below error message

” ossl_ssl.c:110:1: error: ‘SSLv2_method’ undeclared here (not in a function)
ossl_ssl.c:111:1: error: ‘SSLv2_server_method’ undeclared here (not in a function)
ossl_ssl.c:112:1: error: ‘SSLv2_client_method’ undeclared here (not in a function)
make[1]: *** [ossl_ssl.o] Error 1
make[1]: Leaving directory `/var/cache/ruby-rvm/src/ruby-1.9.2-p180/ext/openssl’
make: *** [mkmain.sh] Error 1″

Cause: We have to set the $rvm_path.

Solution:

sudo apt-get install ruby-rvm
# make sure we have $rvm_path
$source /etc/profile
# don’t use ubuntus openssl
$rvm package install openssl
$rvm install 1.9.2 –with-openssl-dir=$rvm_path/usr

Ref: http://29a.ch/2011/10/28/rvm-on-ubuntu-11-10

 

Advertisements

2 Responses to Ruby on rails installation error – Halting the installation

  1. THanks a lot! SOlved my problem

  2. It looks like WordPress reformatted the last command.

    Instead of `rvm install 1.9.2 –with-openssl-dir=$rvm_path/usr` it should be `rvm install 1.9.2 –with-openssl-dir=$rvm_path/usr`.

    (The argument should use a double hyphen, not an em dash.)

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: