我不是一个红宝石专家,但我已经设法收集足够的信息,以建立一个Gemfile和安装所需的Gemfile。
然而,最近我遇到了一些问题。不管出于什么原因,我现在得到了这个错误:
> bundle install --deployment
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/settings.rb:129:in `set_key': undefined method `to_yaml' for {"BUNDLE_FROZEN"=>"1"}:Hash (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/settings.rb:129:in `open'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/settings.rb:129:in `set_key'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/settings.rb:17:in `[]='
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/cli.rb:219:in `install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/vendor/thor/task.rb:27:in `__send__'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/vendor/thor/task.rb:27:in `run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/vendor/thor.rb:344:in `dispatch'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/vendor/thor/base.rb:434:in `start'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/bin/bundle:20
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.1/bin/bundle:20
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19我已经看过推荐链接了,但问题仍然存在。我的Gemfile非常简单:
source "https://rubygems.org"
gem 'sass'以及伴随的Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
sass (3.2.6)
PLATFORMS
ruby
DEPENDENCIES
sass为什么邦德勒没有安装?
进一步详细信息
使用更旧版本的bundler (例如,1.2),效果很好。只是没有1.3.1
我使用ruby 1.8.7和rubygems 1.8.11。
发布于 2013-03-05 07:30:27
刚刚有了同样的问题,并通过卸载最新版本1.3.1解决了它
gem uninstall bundler -v 1.3.1bundler 1.3.0应使其通过;)
编辑:不知道为什么:
发布于 2013-03-04 20:07:49
任何机会,当你安装红宝石,你没有安装libyaml的系统。Ruby需要libyaml来运行它的标准库yaml。
尝试安装libyaml (查找如何为您的特定操作系统),然后重新安装红宝石。
https://stackoverflow.com/questions/15210062
复制相似问题