problem with installing rake on Mac OS X Yosemite
hi,
I am trying to install Rake on my Mac, (by typing : gem install rake) and I get this error :
While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
I am quite new to programming, have not been able to select a clear instruction from forums,
could you suggest how to remedy please ? many thanks for explaining in a simple way for me to follow.
Adam
First of all: When you have any modern Ruby installed (and Yosemite does) you don't need to install rake, as it is part of the Ruby standard library.
In your case, you don't have enough permissions to write to the directory because you are trying to install the gem in the so called system Ruby: Adding sudo in front of the command line will prompt you for your password and allow you to install (this btw. has nothing to do with Ruby or programming, it's how you operate OS X)
sudo gem install rake
Thank you very much
Thank you for the question and the answer. I just installed mine. I could not figure it out as well until i stumbled on this post.