Ruby on Rails和SSL错误

问题描述:

我格式化我的计算机和转移我所有的RoR应用到我的新Lubuntu系统。 我的Ubuntu与统一。 (仍然是一个Linux系统)。我已经安装了rvm,ruby,rails,并且它们都工作正常!然后在运行“rails s”之前运行“bundle install”来测试我的应用程序。 这是我得到Ruby on Rails和SSL错误

Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks! 
/home/user/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- openssl (LoadError) 

任何帮助吗?

这是命令和apt-get安装OpenSSL的给我:

Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
openssl is already the newest version. 
The following packages were automatically installed and are no longer required: 
    libreadline-gplv2-dev git-man libncurses5-dev libnspr4-0d libtinfo-dev git libreadline5 zlib1g-dev liberror-perl libsqlite3-dev 
Use 'apt-get autoremove' to remove them. 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 
+0

确实有安装了OpenSSL?命令和apt-get安装OpenSSL的 – 2012-04-19 18:07:48

+0

我已经编辑我的答案 – 2012-04-19 18:11:17

+0

考虑寻找在这个[问题](http://*.com/questions/8642368/why-require-mongo-gives-me-loaderror-no-such-file -to-负载OpenSSL的)。 – 2012-04-19 18:17:30

你用RVM安装了Ruby版本之前安装的软件包?

尝试取出红宝石版本,运行

sudo apt-get install libssl-dev openssl 

,然后安装Ruby版本再次

+0

感谢它工作正常! – 2012-04-19 18:39:56