2

我刚刚遇到了一些使用 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>'
4

1 回答 1

5

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

rvm requirements

删除所有其他版本的openssl并仅保留一个匹配版本的 openssl + openssl-dev(el) 很重要。

在此之后,您需要重新安装 ruby​​:

rvm reinstall 1.9.3
于 2012-10-17T11:16:44.927 回答