Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing gems using rvm

Tags:

When trying to install gems using rvm i get this error

$ rvm gem install sproutcore ERROR:  While executing gem ... (Errno::EACCES) Permission denied - /home/tee/.gem/specs 

but it says on the rvm site that you should not use sudo so I'm not sure whats wrong with my setup

when i type $GEM_HOME it shows that the directory is pointing to the rvm dir

$GEM_HOME bash: /home/tee/.rvm/gems/ruby-1.8.7-p302: is a directory 

Any ideas what I'm doing wrong?

like image 593
tee Avatar asked Oct 04 '10 07:10

tee


1 Answers

There's a permission issue with your .gem folder. Make sure the owner is your current user.

sudo chown -R tee /home/tee/.gem 

If it doesn't work, remove the .gem folder. It is automatically created when you update the gem cache.

Also, make sure you never used sudo with rvm.

like image 169
Simone Carletti Avatar answered Sep 22 '22 15:09

Simone Carletti