【发布时间】:2011-07-10 03:10:26
【问题描述】:
我需要安装 json,因为我收到此错误:
Could not find json-1.4.6 in any of the sources
我运行了 gem install json 和 bundle install,但我只能在需要 json-1.4.6 时安装 json-1.5.1
我的 gemfile 中有 gem 'json', '1.4.6',所以我不确定发生了什么...
更新
我得到这个错误:
安装 json (1.4.6) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1216:in `chmod': 不允许操作 - /Library /Ruby/Gems/1.8/gems/json-1.4.6/CHANGES (Errno::EPERM)
【问题讨论】: