开发者

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

开发者 https://www.devze.com 2023-01-07 21:58 出处:网络
I\'m trying to install teambox on ruby. I am running passenger and getting this error: Permission denied - /root/.bundle/ruby/1.8/specificatio开发者_StackOverflow社区ns

I'm trying to install teambox on ruby. I am running passenger and getting this error:

Permission denied - /root/.bundle/ruby/1.8/specificatio开发者_StackOverflow社区ns

I tried the following chown teambox directory to teambox user chown /root/.bundle/ruby/1.8/specifications to teambox user.

Please help!


Maybe the solution would be pass a custom shared path to bundle, so instead of doing

bundle install

you could do

bundle install shared_path

where shared_path is a directory with correct permissions


Login as the teambox user and run bundle install.


I had a similar issue with my bundle install command. Mine was caused because earlier I had mistyped a help command. Bad => 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 ..

0

精彩评论

暂无评论...
验证码 换一张
取 消