2010-02-19 61 views
0

所以我正在一臺計算機上使用一些ruby/rails代碼並且工作正常。我認爲我的導軌寶石破損

但是,在另一臺計算機上,當我嘗試創建模型或運行服務器時遇到問題,並且看起來像是同一個問題。看看這個輸出:

$>script/generate 
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:in `require_frameworks': no such file to load -- net/https (RuntimeError) 
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process' 
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send' 
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run' 
    from /home/aaron/NetBeansProjects/online-scheduler/config/environment.rb:9 
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' 
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' 
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/generate.rb:1 
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' 
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' 
    from script/generate:3 
$>script/server 
=> Booting Mongrel 
=> Rails 2.3.5 application starting on http://0.0.0.0:3000 
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:in `require_frameworks': no such file to load -- net/https (RuntimeError) 
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process' 
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send' 
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run' 
    from /home/aaron/NetBeansProjects/online-scheduler/config/environment.rb:9 
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' 
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' 
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' 
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:84 
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' 
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' 
    from script/server:3 
$> 

現在腳本/生成另一臺計算機上應該顯示我產生,我可以使用的命令列表...有啥交易?

+0

什麼發行是你嗎? – 2010-02-19 06:29:38

+0

那麼,如果你認爲只是寶石壞了,那麼試試「sudo gem uninstall rails && sudo gem install rails」來重新安裝它... – severin 2010-02-19 09:01:14

+0

@Sam Ubuntu 9.10。 @severin:並不總是那麼簡單。當我安裝libopenssl-ruby1.8時,問題已經解決。 – DJTripleThreat 2010-02-20 11:08:59

回答