捆绑安装 - 没有生产错误

时间:2014-01-15 09:59:31

标签: ruby-on-rails ruby vagrant

这是我的日志帮助的一部分(新的流浪者)

vagrant@precise32:/vagrant$ bundle install --without production
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/usr/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Permission denied - /usr/lib/ruby/gems/1.9.1/extensions/x86-linux/1.9.1/json-1.8.1 (Errno::EACCES)`
        from /usr/lib/ruby/1.9.1/fileutils.rb:247:in `fu_mkdir'
        from /usr/lib/ruby/1.9.1/fileutils.rb:221:in `block (2 levels) in mkdir_p'
        from /usr/lib/ruby/1.9.1/fileutils.rb:219:in `reverse_each'
        from /usr/lib/ruby/1.9.1/fileutils.rb:219:in `block in mkdir_p'
        ......
        ......

1 个答案:

答案 0 :(得分:0)

您是否尝试过sudo bundle install?看起来存在权限问题......

/usr/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Permission denied - /usr/lib/ruby/gems/1.9.1/extensions/x86-linux/1.9.1/json-1.8.1 (Errno::EACCES)`