Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
write permissions for gem install bundler
I've just started installing ruby on rails. Everything in the setup was going fine until I tried to install the Gems. I received this error
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
any help would greatly be appreciated
Thomas AnthonyiOS Development Techdegree Student 22,352 Points
You need to specify the
sudo command before you
gem install because you do not have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
sudo is a shell command that gives you elevated privileges and allows you to perform system-level operations without switching to the root user. Be very cautious, however. Make certain you double check your commands before execution. It is very easy to perform a command that could potentially cause irreversible damage i.e.
sudo rm -rf / (NEVER DO THIS!!!).
Make note, you will have to use the
sudo command each time you
gem install unless you perform some rather advanced account configurations.
Eric TiradoiOS Development Techdegree Student 7,036 Points
I still get an "Operation not permitted" when using "sudo gem install bundler" Here's a screenshot
Daniel Peñaloza3,292 Points
Have the same problem. Copy the set of commands and the terminal answer :"syntax error near unexpected token `;;' " Any idea what can i do?