今天更新了Rails到2.0.2版本,启动application时出现了一下错误:
一开始还以为自己没有安装 openssl, 一查已经 安装过openssl,原来是少安装了libopenssl-ruby
我使用的是ruby1.8,所以就 sudo apt-get install libopenssl-ruby1.8
然后重启应用,问题解决。
=> Booting WEBrick...
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:159:in `require_frameworks': no such file to load -- openssl (RuntimeError)
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:88:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `run'
from /home/simon/dev/depot/config/environment.rb:13
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
... 7 levels...
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/server:3
一开始还以为自己没有安装 openssl, 一查已经 安装过openssl,原来是少安装了libopenssl-ruby
simon@simon-laptop:~$ sudo apt-cache search libopenssl-ruby ruby1.8 - Interpreter of object-oriented scripting language Ruby 1.8 libopenssl-ruby - OpenSSL interface for Ruby libopenssl-ruby1.8 - OpenSSL interface for Ruby 1.8 libopenssl-ruby1.9 - OpenSSL interface for Ruby 1.9
我使用的是ruby1.8,所以就 sudo apt-get install libopenssl-ruby1.8
然后重启应用,问题解决。
- 14:47
- 浏览 (307)
- 评论 (3)
- 分类: Ruby on Rails
- 进入论坛
- 相关推荐
评论
simonli
2008-07-14
Solaris下也必须安装openssl with ruby
Aryang
2008-06-18
Solaris该怎么装?
liusu
2008-02-18
Same problem with you.
After update rails to 2.0.2, i get the same exception with you when i run script/server.
I do same with you, but also failed. Any other method to resolve this problem?
Thx.
After update rails to 2.0.2, i get the same exception with you when i run script/server.
I do same with you, but also failed. Any other method to resolve this problem?
Thx.
发表评论
提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则
- 浏览: 1738 次
- 性别:

- 来自: 苏州

- 详细资料
搜索本博客
最近加入圈子
链接
最新评论
-
no such file to load -- ...
Solaris下也必须安装openssl with ruby
-- by simonli -
no such file to load -- ...
Solaris该怎么装?
-- by Aryang -
no such file to load -- ...
Same problem with you. After update rail ...
-- by liusu -
~~开始学习Ruby
是的,Linux下使用irb 非常的方便,netbeans 在初学时到没有irb ...
-- by simonli -
~~开始学习Ruby
simonli 写道之前一直从事Java开始,到现在也有5年了吧 从今天开始学习 ...
-- by 抛出异常的爱






评论排行榜