2

升级到 OS X 10.9 后,我重新安装了 ruby rvm reinstall 2.0.0​​,安装了 rvm 的静态链接 ruby​​。现在,当我bundle install在一个项目中运行时,我遇到了来自 bundler 的问题。我升级到 bundle-1.5.0rc1 没有成功。

$ bundle install
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/Users/nik/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': undefined class/module Digest::Base (ArgumentError)
  from /Users/nik/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/lib/bundler/definition.rb:1:in `<top (required)>'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/lib/bundler.rb:148:in `definition'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/lib/bundler/cli.rb:245:in `install'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in `run'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in `dispatch'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in `start'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/bin/bundle:20:in `block in <top (required)>'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/gems/bundler-1.3.5/bin/bundle:20:in `<top (required)>'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/bin/bundle:23:in `load'
  from /Users/nik/.rvm/gems/ruby-2.0.0-p247@gemset/bin/bundle:23:in `<main>'

解决方法是使用动态链接的 ruby​​:rvm reinstall 2.0.0 --disable-binary

此处记录了此 Bundler 错误:https ://github.com/bundler/bundler/issues/2715

4

1 回答 1

0

解决方法是使用动态链接的 ruby​​:rvm reinstall 2.0.0 --disable-binary

此处记录了此 Bundler 错误:https ://github.com/bundler/bundler/issues/2715

于 2018-08-29T03:31:50.350 回答