On Mon, May 20, 2013 at 10:36 PM, Majid L. <
li...@ruby-forum.com> wrote:
> Hi, I am new in mac and ruby on rails, please bear with me if I asked
> stupid questions :
>
> I tried to install, rails in my mac :"
>
> bdelmajids-iMac:~ majid$ gem install rails
> ERROR: While executing gem ... (Gem::FilePermissionError)
> You don't have write permissions for the /Library/Ruby/Gems/1.8
> directory.
> Abdelmajids-iMac:~ majid$
>
> Please your help is appreciated.
> thanks,
From the looks of it, you're trying to install rails system-wide with
that. If that's what you want, preceed the gem command with sudo.
A possibly better alternative is to install either rvm or rbenv, and
have things loaded per user or per project.