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: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: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: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: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:in
require’
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:in
require’
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: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: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: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: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:in
session_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:in
tap’
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:in
app’
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:in
instance_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:in
block 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:in
run_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:in
method_missing’
from /srv/www/aplikacja/test1/program/config/environment.rb:5:in <top (required)>' from /srv/www/aplikacja/test1/program/config.ru:4:in
require’
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:in
instance_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:in
new’
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:in
eval’
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:in
app’
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:in
wrapped_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:in
start’
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:in
tap’
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:in
require’
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.