Jak doinstalować bibliotekę do rubiego używanego przez rvm?

Próbuję odpalić RefineryCMS z użyciem Rails 3.0.0 i Ruby 1.9.2-p0. Po instalacji wyskakuje mi błąd:

/home/nagl/.rvm/gems/ruby-1.9.2-p0/gems/authlogic-2.1.6/lib/authlogic/crypto_providers/aes256.rb:1:in `require': no such file to load -- openssl (LoadError)
Czyli brakuje openssl. Nie ma takiego gema, więc trzeba doinstalować bibliotekę ręcznie. I tu pojawia się problem, “aptitude install libopenssl-ruby1.9.1” pomogłoby, gdybym uzywał systemowego rubiego, a nie przez rvm. Czy ktoś wie jak wykonać taką operację z użyciem rvm?

Nie wystarczy samo aptitude install libopenssl-ruby? Przynajmniej ja tak mam i wszystko jest, zdaje się, ok.

Nie, nie wystarczy. Musisz zainstalować bibliotekę libopenssl-dev (albo podobnie) przed zainstalowaniem Rubiego przez RVM.

W związku z SLL mam zainstalowane teraz paczki (nie wiem której brakowało):

i erlang-ssl - Erlang/OTP implementation of SSL i libcurl4-openssl-dev - Development files and documentation for li i A libio-socket-ssl-perl - Perl module implementing object oriented i i A libnet-ssleay-perl - Perl module for Secure Sockets Layer (SSL) i libopenssl-ruby - OpenSSL interface for Ruby i A libopenssl-ruby1.8 - OpenSSL interface for Ruby 1.8 i libopenssl-ruby1.9 - OpenSSL interface for Ruby 1.9 i libopenssl-ruby1.9.1 - OpenSSL interface for Ruby 1.9.1 i A libqca2-plugin-ossl - QCA OSSL plugin for libqca2 i A libssl-dev - SSL development libraries, header files an i libssl0.9.8 - Biblioteki współdzielone SSL i openssl - Secure Socket Layer (SSL) binary and relat i python-openssl - Python wrapper around the OpenSSL library i ssl-cert - Proste opakowanie debconfa dla OpenSSL
Próbowałem wykonywać:

rvm uninstall ruby-1.9.2-p0 rvm install ruby-1.9.2-p0
Ale nic to nie dało. Następnie wykonałem:

cd ~/.rvm/src/ruby-1.9.2-p0/ext/openssl ruby extconf.rb make make install
I ruszyło. :slight_smile: