rake icon indicating copy to clipboard operation
rake copied to clipboard

problem with installing rake on Mac OS X Yosemite

Open panoramapro opened this issue 9 years ago • 3 comments

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

panoramapro avatar Mar 22 '16 06:03 panoramapro

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

damphyr avatar Mar 22 '16 08:03 damphyr

Thank you very much

panoramapro avatar Mar 24 '16 06:03 panoramapro

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.

StephanGELo avatar Nov 07 '17 18:11 StephanGELo