Welcome to the Treehouse Community
Looking to learn something new?
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?