我刚刚使用 RVM 从 ruby 1.9.3-p194 升级到 1.9.3-p286 时遇到了一些问题。到目前为止,我已经设法修复了所有这些问题,当我运行 bundler 时,我得到以下信息:
~/rp/tp[master*]$ bundle update
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/robin/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': libcrypto.so.0.9.8: cannot open shared object file: No such file or directory - /home/robin/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so (LoadError)
from /home/robin/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/definition.rb:1:in `<top (required)>'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler.rb:144:in `definition'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/cli.rb:279:in `update'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/vendor/thor/task.rb:27:in `run'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/vendor/thor.rb:275:in `dispatch'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/vendor/thor/base.rb:408:in `start'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/bin/bundle:14:in `block in <top (required)>'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/bin/bundle:14:in `<top (required)>'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/bin/bundle:19:in `load'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/bin/bundle:19:in `<main>'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/bin/ruby_noexec_wrapper:14:in `eval'
from /home/robin/.rvm/gems/ruby-1.9.3-p286@global/bin/ruby_noexec_wrapper:14:in `<main>'
最佳答案
确保所有库均已正确安装,RVM 显示所需的库以及如何安装它们:
rvm requirements
请务必删除 openssl 的所有其他版本,并仅保留 openssl + openssl-dev(el) 的一个匹配版本。
此后您需要重新安装 ruby:
rvm reinstall 1.9.3
关于ruby-on-rails - 不幸的是,发生了 fatal error 。请参阅 Bundler 故障排除文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12932527/