how to create gemsets using rvm

31 views
Skip to first unread message

honey ruby

unread,
Jul 2, 2012, 8:40:17 AM7/2/12
to rubyonra...@googlegroups.com
Hi all ive installed rvm 1.8.7 and 1.9.2 when i select rvm 1.8.7 and when i try to create a gem set and install gems it is not installing it is asking from permissions. if i use sudo to install gems and then when i type gem list i can't any gem .  where did i go wrong . correct me

Thanks in advance



thiagocifani

unread,
Jul 2, 2012, 8:48:39 AM7/2/12
to rubyonra...@googlegroups.com
Did you follow the rvm site tutorial? Ig not please try by there!

Sent from my iPhone

On 02/07/2012, at 09:40, honey ruby <emailtoh...@gmail.com> wrote:

Hi all ive installed rvm 1.8.7 and 1.9.2 when i select rvm 1.8.7 and when i try to create a gem set and install gems it is not installing it is asking from permissions. if i use sudo to install gems and then when i type gem list i can't any gem .  where did i go wrong . correct me

Thanks in advance



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/40L-Y25jNzIJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

hanish jadala

unread,
Jul 2, 2012, 8:50:28 AM7/2/12
to rubyonra...@googlegroups.com
ive gone through rvm site only

hanish jadala

unread,
Jul 2, 2012, 9:23:57 AM7/2/12
to rubyonra...@googlegroups.com
updates:
i followed this link http://screencasts.org/episodes/how-to-use-rvm everything went fine other than installing the gems only. i get this
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /home/hanish/.gem/specs
when go with sudo it works but the gem is installing in root.


Thanks in advance

thiagocifani

unread,
Jul 2, 2012, 9:28:26 AM7/2/12
to rubyonra...@googlegroups.com
I recommend you remove all your ruby version on your system, remove rvm and begins from scratch. It is probabily some permission problem, because you have a ruby version installed by default in your OS. I guess you are using linux, but if not I recommend do the same approach. Remove everything and try to install through rvm web site.

if you need any support please ping me.

https://rvm.io/rvm/install/

2012/7/2 hanish jadala <emailtoh...@gmail.com>



--
thiagocifani

Hassan Schroeder

unread,
Jul 2, 2012, 10:10:26 AM7/2/12
to rubyonra...@googlegroups.com
On Mon, Jul 2, 2012 at 6:23 AM, hanish jadala
<emailtoh...@gmail.com> wrote:

> everything went fine other than installing the gems only. i get this
> ERROR: While executing gem ... (Errno::EACCES)
> Permission denied - /home/hanish/.gem/specs

So? What *are* the perms on that directory? You've probably messed
them up fiddling with sudo (which you should avoid when using rvm )
but you can change them back to a sane state.

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

hanish jadala

unread,
Jul 3, 2012, 1:43:46 AM7/3/12
to rubyonra...@googlegroups.com
Thank you ive tried in other system it worked but not on my system.ill remove all the version of ruby and ill try with rvm

Kory Tegman

unread,
Jul 3, 2012, 3:52:44 PM7/3/12
to rubyonra...@googlegroups.com
the one thing that i noticed from screen cast that they did not talk about is the scope of your rvm and gem installs. you should have rails installed on your machine globally before you install it in a gemset or a .rvmrc environment.


On Monday, July 2, 2012 10:43:46 PM UTC-7, honey ruby wrote:
Thank you ive tried in other system it worked but not on my system.ill remove all the version of ruby and ill try with rvm

On Mon, Jul 2, 2012 at 6:58 PM, thiagocifani <cifani...@gmail.com> wrote:
I recommend you remove all your ruby version on your system, remove rvm and begins from scratch. It is probabily some permission problem, because you have a ruby version installed by default in your OS. I guess you are using linux, but if not I recommend do the same approach. Remove everything and try to install through rvm web site.

if you need any support please ping me.

https://rvm.io/rvm/install/


2012/7/2 hanish jadala <emailtoh...@gmail.com>
updates:
i followed this link http://screencasts.org/episodes/how-to-use-rvm everything went fine other than installing the gems only. i get this
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /home/hanish/.gem/specs
when go with sudo it works but the gem is installing in root.


Thanks in advance
On Mon, Jul 2, 2012 at 6:20 PM, hanish jadala <emailtoh...@gmail.com> wrote:
ive gone through rvm site only
On Mon, Jul 2, 2012 at 6:18 PM, thiagocifani <cifani...@gmail.com> wrote:
Did you follow the rvm site tutorial? Ig not please try by there!

Sent from my iPhone

On 02/07/2012, at 09:40, honey ruby <emailtoh...@gmail.com> wrote:

Hi all ive installed rvm 1.8.7 and 1.9.2 when i select rvm 1.8.7 and when i try to create a gem set and install gems it is not installing it is asking from permissions. if i use sudo to install gems and then when i type gem list i can't any gem .  where did i go wrong . correct me

Thanks in advance



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/40L-Y25jNzIJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.

Colin Law

unread,
Jul 3, 2012, 4:04:14 PM7/3/12
to rubyonra...@googlegroups.com
On 3 July 2012 20:52, Kory Tegman <koryt...@gmail.com> wrote:
> the one thing that i noticed from screen cast that they did not talk about
> is the scope of your rvm and gem installs. you should have rails installed
> on your machine globally before you install it in a gemset or a .rvmrc
> environment.

It is not necessary (or desirable) to install rails before rvm. Why
do you think it is necessary?

Colin
>>>>>> rubyonra...@googlegroups.com.
>>>>>> To unsubscribe from this group, send email to
>>>>>> rubyonrails-ta...@googlegroups.com.
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/rubyonrails-talk?hl=en-US.
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Ruby on Rails: Talk" group.
>>>>>> To post to this group, send email to
>>>>>> rubyonra...@googlegroups.com.
>>>>>> To unsubscribe from this group, send email to
>>>>>> rubyonrails-ta...@googlegroups.com.
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/rubyonrails-talk?hl=en-US.
>>>>>
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ruby on Rails: Talk" group.
>>>> To post to this group, send email to rubyonra...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> rubyonrails-ta...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/rubyonrails-talk?hl=en-US.
>>>
>>>
>>>
>>>
>>> --
>>> thiagocifani
>>> http://thiagocifani.wordpress.com/
>>> twitter.com/thiagocifani
>>> del.icio.us/thiagocifani
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Ruby on Rails: Talk" group.
>>> To post to this group, send email to rubyonra...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> rubyonrails-ta...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/rubyonrails-talk?hl=en-US.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/dEtpi5KhP0cJ.
>
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages