1

可能重复:
未定义符号:运行捆绑安装时的 SSLv2_method

我尝试“捆绑安装”我的 Rails 项目,但出现此错误:

Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler 
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! 
/home/vekozlov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/vekozlov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-linux/openssl.so: undefined symbol: SSLv2_method - /home/vekozlov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-linux/openssl.so (LoadError)

我找到了这种情况(Ubuntu 和 SSLv2_method 的未定义符号),但我不明白如何在 Ubuntu 12.04 x64 中修复它

谢谢你的帮助。

UPD:它对我有用(俄语)

http://awolf.ru/rails-on-ubuntu-with-rvm/

4

1 回答 1

7

请按照以下步骤解决问题:

$ source ~/.rvm/scripts/rvm
$ rvm pkg install zlib
$ rvm pkg install openssl
$ sudo apt-get install libreadline-dev
$ rvm pkg install readline
$ rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
$ gem install rails
于 2012-10-07T19:04:14.040 回答