2012-09-20 204 views
1

我只是捆綁安裝成功,現在我得到這個錯誤,當我啓動rails服務器。軌服務器不啓動

我已經嘗試通過安裝openssl並重新安裝rvm來啓動服務器。 我使用rvm 1.8.7和rails 3.0.10。

[email protected] ~/Documents/trunk $ rails s 
/home/rony/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `require': no such file to load -- openssl (LoadError) 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `require' 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225:in `load_dependency' 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:593:in `new_constants_in' 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225:in `load_dependency' 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `require' 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/stripe-1.7.0/lib/stripe.rb:7 
    from /home/rony/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require' 
    from /home/rony/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require' 
    from /home/rony/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `each' 
    from /home/rony/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `require' 
    from /home/rony/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `each' 
    from /home/rony/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `require' 
    from /home/rony/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler.rb:128:in `require' 
    from /home/rony/Documents/trunk/config/application.rb:8 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.10/lib/rails/commands.rb:28:in `require' 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.10/lib/rails/commands.rb:28 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.10/lib/rails/commands.rb:27:in `tap' 
    from /home/rony/.rvm/gems/ruby-1.8.7-p370/gems/railties-3.0.10/lib/rails/commands.rb:27 
    from script/rails:6:in `require' 
    from script/rails:6 

回答

2

參考this

rvm pkg install openssl (older format - rvm package install openssl) 
rvm pkg install iconv (older format - rvm package 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 

感謝http://www.isnull.com.ar/