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
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.
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.
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.
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.
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?