gem install rails ERROR

98 views
Skip to first unread message

Majid L.

unread,
May 20, 2013, 11:36:44 PM5/20/13
to rubyonra...@googlegroups.com
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,

--
Posted via http://www.ruby-forum.com/.

tamouse mailing lists

unread,
May 21, 2013, 1:37:25 AM5/21/13
to rubyonra...@googlegroups.com
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.

Majid L.

unread,
May 21, 2013, 6:49:37 AM5/21/13
to rubyonra...@googlegroups.com
The samething happened when I try :
sudo gem install rails

I have rvm installed, how should I use it ?
thanks

Arvind Vyas

unread,
May 21, 2013, 8:23:47 AM5/21/13
to rubyonra...@googlegroups.com
gem install rails --version=4.0.0.rc1
version what ever you want 


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b6c7b685232e2cb36b20ccc1457c28a9%40ruby-forum.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.



Arvind Vyas

unread,
May 22, 2013, 10:16:57 AM5/22/13
to rubyonra...@googlegroups.com


On Wed, May 22, 2013 at 3:09 PM, <snlsin...@gmail.com> wrote:
use.. sudo gem install rails

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

AJ Acevedo

unread,
May 23, 2013, 1:52:22 AM5/23/13
to rubyonra...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages