我正在尝试在ubuntu 9.10下运行RoR服务器:
> ruby script/server
> => Booting WEBrick
> => Rails 2.3.4 application starting on http://0.0.0.0:3000
> /var/lib/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:271:in
> `require_frameworks': no such file to
> load -- net/https (RuntimeError)
> from /var/lib/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:134:in
> `process'
> from /var/lib/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in
> `send'
> from /var/lib/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in
> `run'
> from /home/ockonal/Programming/RoR/demo/demo/config/environment.rb:9
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
> from /var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in
> `require'
> from /var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in
> `new_constants_in'
> from /var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in
> `require'
> from /var/lib/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:84
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
> from script/server:3
我做错了什么?
答案 0 :(得分:6)
您没有安装Ruby SSL支持,导致Rails在查找net/https.rb
时失败。如果您使用的是默认的Ubuntu Ruby软件包,那么您需要安装libopenssl-ruby1.8
软件包。