在OS X 10.9中使用带有静态链接ruby的bundler

时间:2013-11-13 19:03:19

标签: ruby rvm bundler osx-mavericks

升级到OS X 10.9后,我用rvm reinstall 2.0.0重新安装了ruby,安装了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

1 个答案:

答案 0 :(得分:0)

解决方法是使用动态链接的红宝石:rvm reinstall 2.0.0 --disable-binary

此Bundler错误记录在这里:https://github.com/bundler/bundler/issues/2715