今天更新了Rails到2.0.2版本,启动application时出现了一下错误:
=> 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
然后重启应用,问题解决。
分享到:
相关推荐
openldap-2.2.29-db-4.3.29-openssl 不为积分只为没有积分的哥们少作难,另有陪有强大的LdapAdmin.exe, 比较Softerra LDAP Browser 2.5强百倍。...openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe
前言本博客所写到的是我在Linux云服务器升级编译内核时所遇到的真实问题,已解决。编译内核遇到的问题太多了。问题描述 在进行内核编译的时候,提sha1加密 C语
apache_2.2.8-win32-x86-openssl-0.9.8g.msi安装方便快捷
httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
openldap-2.2.29 windows安装包(免密钥),openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe
apache + svn 服务器搭建 包含apache安装包,和svn安装包 apache_2.2.11-win32-x86-openssl-0.9.8i.msi svn-win32-1.5.4
Apachehttpd-2.2.17-win32-x86-openssl
httpd-2.2.25-win32-x86-openssl-0.9.8y安装教程
tomcat-native-1.2.26-openssl-1.1.1i-win32-bin
apache_2.0.63-win32-x86-openssl-0.9.7m
apache_2.2.11-win32-x86-openssl-0.9.8i.zip
httpd-2.2.22-win32-x86-openssl-0.9.8t.z
Laravel开发-laravel-openssl-encryption-42 使用php openssl扩展名的laravel 4加密包
方便使用,易于学习,能在短时间内学习,不许花费太多时间
apache_-win32-x86-openssl 安装包
httpd-2.0.65-win32-x86-openssl-0.9.8y.msi
apache_2.2.8-win32-x86-openssl-0.9.8g,和SVN1.4.6,客户端1.4.8一起使用的。
httpd-2.2.25-win32-x86-openssl-0.9.8y.msi mod_jk-1.2.31-httpd-2.2.3.so
Apache服务器msi版的安装 apache_2.4.23-x64-openssl-1.0.2hapache_2.4.23-x64-openssl-1.0.2hapache_2.4.23-x64-openssl-1.0.2hapache_2.4.23-x64-openssl-1.0.2h