Ubuntu rvm ruby and openssl
I am trying to install ruby with rvm on Ubuntu. I have installed rvm with a synaptic package manager.
$ which rvm
/usr/bin/rvm
$ rvm --version
rvm 1.6.9 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
I am trying to install ruby:
$ rvm install 1.9.2
...
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.
The problem in the log file is related to openssl:
ossl_ssl.c:110:1: error: ‘SSLv2_method’ undeclared here (not in a function)
In https://rvm.io/packages/openssl/ it says that he does $ rvm requirements
, but it gives an error:
$ rvm requirements
ERROR: Unrecognized command line argument: 'requirements' ( see: 'rvm usage' )
On the same page, it asks $ rvm reinstall 1.9.2 --with-openssl-dir=/usr/local
, but it gives me the same errors during ruby compilation. For the second approach on the same page, rvm pkg install openssl
gives me
$ rvm pkg install openssl
ERROR: Unrecognized command line argument: 'pkg' ( see: 'rvm usage' )
Openssl appears to be installed:
$ dpkg --get-selections | grep openssl
openssl install
python-openssl install
source to share
You are using an outdated version of RVM. You should go with the recommended installation path described at http://rvm.io and not use the package installer. To correct this team, fooobar.com/questions/37088 / ... .
Also don't use 1.9.2 instead of the current 1.9.3 ruby, and for new projects use 2.0.0 which is in RC1 and should be released soon.
source to share