可能重复:
undefined symbol: SSLv2_method when running bundle install
我尝试“捆绑安装”我的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 and undefined symbol for SSLv2_method),但我不明白如何在Ubuntu 12.04 x64中修复它
感谢您的帮助。
UPD: 它对我有用(俄语)
答案 0 :(得分: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