Zmiana wersji na ruby 1.9.3p0 i dziwny problem z openssl

Witam! Mam taki problem ponieważ wcześniej miałem wersję ruby 1.8.7
i wykonałem instalację do ruby 1.9.3p0. Jak próbowałem wykonać uruchomienie aplikacji
poprzez rails server to dostawałem coś takiego:

[quote]/usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in require': cannot load such file -- openssl (LoadError) from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:inblock in require’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in block in load_dependency' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:innew_constants_in’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in load_dependency' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:inrequire’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/rack-1.3.5/lib/rack/session/cookie.rb:1:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:inrequire’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in block in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:inblock in load_dependency’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in new_constants_in' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:inload_dependency’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in require' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/actionpack-3.1.3/lib/action_dispatch/middleware/session/cookie_store.rb:4:in<top (required)>’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/application/configuration.rb:131:in const_get' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/application/configuration.rb:131:insession_store’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/application.rb:172:in block in default_middleware_stack' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/application.rb:146:intap’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/application.rb:146:in default_middleware_stack' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/engine.rb:446:inapp’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/application/finisher.rb:37:in block in <module:Finisher>' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/initializable.rb:30:ininstance_exec’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/initializable.rb:30:in run' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/initializable.rb:55:inblock in run_initializers’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/initializable.rb:54:in each' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/initializable.rb:54:inrun_initializers’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/application.rb:96:in initialize!' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:inmethod_missing’
from /srv/www/aplikacja/test1/program/config/environment.rb:5:in <top (required)>' from /srv/www/aplikacja/test1/program/config.ru:4:inrequire’
from /srv/www/aplikacja/test1/program/config.ru:4:in block in <main>' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/rack-1.3.5/lib/rack/builder.rb:51:ininstance_eval’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/rack-1.3.5/lib/rack/builder.rb:51:in initialize' from /srv/www/aplikacja/test1/program/config.ru:1:innew’
from /srv/www/aplikacja/test1/program/config.ru:1:in <main>' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/rack-1.3.5/lib/rack/builder.rb:40:ineval’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/rack-1.3.5/lib/rack/builder.rb:40:in parse_file' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/rack-1.3.5/lib/rack/server.rb:200:inapp’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/commands/server.rb:46:in app' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/rack-1.3.5/lib/rack/server.rb:301:inwrapped_app’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/rack-1.3.5/lib/rack/server.rb:252:in start' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/commands/server.rb:70:instart’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/commands.rb:54:in block in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/commands.rb:49:intap’
from /usr/local/rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.1.3/lib/rails/commands.rb:49:in <top (required)>' from script/rails:6:inrequire’
from script/rails:6:in `’[/quote]
Znalazłem na jednym z forum takie rozwiązanie:

rvm pkg install openssl
rvm pkg install iconv
rvm remove 1.9.2
rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr,–with-iconv-dir=$HOME/.rvm/usr

po wykonaniu poszło od strzału!
Wylogowałem się z linuxa i po paru minutach zalogowałem znowu.
Wszedłem do katalogu programu aby go uruchomić, wykonałem znowu rails server
i nagle znowu to samo! Wie ktoś może co może być grane?? Dziwna sytuacja?
Próbowałem wykonać to jeszcze raz ale nic tego cały czas to samo!
Podobno wersja 1.9.3 jest szybsza dlatego wykonałem tą aktualizację.
Był bym wdzięczny za pomoc.

Te kroki co wyżej plus:

rvm use --default 1.9.2

Działa?

Dzięki za info ale udało mi się to zrobić w ten sposób:

cd /usr/local/rvm/src/ruby-1.9.2-p290/ext/openssl

ruby extconf.rb
make
make install

i poszło!
Niestety nie zdążyłem z proponowaną opcją.

Gdyby ktoś miał podobny problem lub problem z readline to polecam stronkę:

Dzięki jeszcze raz za info:)