不幸的是,发生了致命错误。请参阅Bundler故障排除文档

时间:2012-10-17 10:42:45

标签: ruby-on-rails ruby rvm

我刚刚遇到一些问题,从使用RVM从ruby 1.9.3-p194升级到1.9.3-p286。到目前为止,我已经设法修复它们,当我运行捆绑器时,我得到以下内容:

~/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>'

1 个答案:

答案 0 :(得分:5)

确保正确安装所有库,RVM显示所需的库以及如何安装它们:

rvm requirements

删除所有其他版本的 openssl 非常重要,只留下一个匹配版本的openssl + openssl-dev(el)。

在此之后你需要重新安装ruby:

rvm reinstall 1.9.3