0

突然,我的 is rvm 无法正常工作,并向我显示所有 rails 和 rake 命令的此错误。

  /home/hb/.rvm/rubies/ruby-1.9.3-                                                                                                 p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': libcrypto.so.1.0.0: cannot open shared object file: No such file or directory - /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/digest/md5.so (LoadError)
from /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/hb/.rvm/gems/ruby-1.9.3-p194@demo/gems/railties-3.2.8/lib/rails/generators/app_base.rb:1:in `<top (required)>'
from /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/hb/.rvm/gems/ruby-1.9.3-p194@demo/gems/railties-3.2.8/lib/rails/generators/rails/app/app_generator.rb:1:in `<top (required)>'
from /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/hb/.rvm/gems/ruby-1.9.3-p194@demo/gems/railties-3.2.8/lib/rails/commands/application.rb:24:in `<top (required)>'
from /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/hb/.rvm/gems/ruby-1.9.3-p194@demo/gems/railties-3.2.8/lib/rails/cli.rb:15:in `<top (required)>'
from /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/hb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/hb/.rvm/gems/ruby-1.9.3-p194@demo/gems/railties-3.2.8/bin/rails:7:in `<top (required)>'
from /home/hb/.rvm/gems/ruby-1.9.3-p194@demo/bin/rails:19:in `load'
from /home/hb/.rvm/gems/ruby-1.9.3-p194@demo/bin/rails:19:in `<main>'
from /home/hb/.rvm/gems/ruby-1.9.3-p194@demo/bin/ruby_noexec_wrapper:14:in `eval'
from /home/hb/.rvm/gems/ruby-1.9.3-p194@demo/bin/ruby_noexec_wrapper:14:in `<main>'

如何解决这个问题?

4

1 回答 1

0

重新安装 1.9.3。在许多情况下都有帮助。rvm 有点像 hack,所以可能有很多原因,尝试重新安装是最不痛苦的。

于 2012-10-03T21:29:17.480 回答