Quick fix
Remove all the manually installed packages:
$ rm -rf $rvm_path/usrFind the requirements (follow the instructions):
$ rvm requirementsReinstall ruby:
$ rvm reinstall 1.9.3
OpenSSL
Common issues that point to an issue with an MRI Ruby compiling openssl are:
- require "openssl" # => false ?!
- Error compiling openssl due to openssl version 1.0.0* installed on the system.
If you have issues with openssl not being available in ruby / irb please try the following configure option you may follow the procedure below.
$ rvm reinstall 1.9.2 --with-openssl-dir=/usr/local
Where you replace '/usr/local' with the prefix where your openssl packages are.
If you can not get this to work you can have RVM install a copy of openssl
into ~/.rvm/usr like so:
$ rvm pkg install openssl $ rvm reinstall 1.9.2 --with-openssl-dir=$rvm_path/usr
Adjust the location if you have a root install to '/usr/local/rvm/usr'
If you see readline errors in the make.error.log visit the readline page also.
In case of compilation problems try:
$ rvm --skip-autoreconf pkg install openssl