简体   繁体   English

Ruby on Rails权限被拒绝-/root/.bundle/ruby/1.8/specifications

[英]Ruby on Rails Permission denied - /root/.bundle/ruby/1.8/specifications

I'm trying to install teambox on ruby. 我正在尝试在ruby上安装teambox。 I am running passenger and getting this error: 我正在运行乘客并收到此错误:

Permission denied - /root/.bundle/ruby/1.8/specifications 权限被拒绝-/root/.bundle/ruby/1.8/specifications

I tried the following chown teambox directory to teambox user chown /root/.bundle/ruby/1.8/specifications to teambox user. 我尝试将以下chown teambox目录授予teambox用户chown /root/.bundle/ruby/1.8/specification授予teambox用户。

Please help! 请帮忙!

Maybe the solution would be pass a custom shared path to bundle, so instead of doing 也许解决方案是将自定义共享路径传递给bundle,所以不要这样做

bundle install

you could do 你可以做

bundle install shared_path

where shared_path is a directory with correct permissions 其中shared_pa​​th是具有正确权限的目录

以teambox用户身份登录并运行bundle install

I had a similar issue with my bundle install command. 我的bundle install命令存在类似的问题。 Mine was caused because earlier I had mistyped a help command. 我的原因是因为我之前输入了错误的帮助命令。 Bad => bundle install /? 错误=> bundle install /?

Here's the error: 这是错误:

/Users/wee/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:243:in `mkdir':     Permission denied - /? (Errno::EACCES)
from /Users/wee/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:243:in  `fu_mkdir'
from /Users/wee/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:217:in `block (2 levels) in mkdir_p'

I was able to fix my issue by adding the current directory to the command: bundle install . 我可以通过将当前目录添加到命令bundle install .来解决我的问题bundle install . .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM