[英]Rails - Errno::EACCES: 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
然后我得到一个错误,我需要运行捆绑安装
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。 有想法该怎么解决这个吗?
如果您以ubuntu
用户身份运行,则可以执行sudo chown ubuntu . -R
sudo chown ubuntu . -R
在应用程序根目录。 这对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.