Rails - Errno :: EACCES:权限被拒绝

时间:2013-12-30 20:57:18

标签: ruby-on-rails bundle permission-denied

当我运行rails时,我收到权限错误

Ryans-MacBook-Air-2:fitbet ryankuhel$ rails s
/Users/ryankuhel/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:37: warning: Insecure world writable dir   /Users/ryankuhel/.rvm/gems/ruby-2.0.0-p353/bin in PATH, mode 040777

然后我收到了运行bundle install

所需的错误
Could not find debugger-1.6.1 in any of the sources
Run `bundle install` to install missing gems.
Ryans-MacBook-Air-2:fitbet ryankuhel$ bundle install


Errno::EACCES: Permission denied - /Users/ryankuhel/documents/interactive/fitbet/.bundle/install.log
/Users/ryankuhel/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler- 1.5.1/lib/bundler/vendor/thor/shell/basic.rb:345: warning: Insecure world writable dir /Users/ryankuhel/.rvm/gems/ruby-2.0.0-p353/bin in PATH, mode 040777
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/Users/ryankuhel/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/open-uri.rb:29:in `initialize': Permission denied - /Users/ryankuhel/documents/interactive/fitbet/.bundle/install.log (Errno::EACCES)

我正在运行Max 10.9.1。有想法该怎么解决这个吗?

1 个答案:

答案 0 :(得分:3)

如果您以用户ubuntu身份运行,则可以在应用程序根目录下执行sudo chown ubuntu . -R。这对我有用。