Cannot install gems (using rvm) no permission

I just installed rvm and after that I installed ruby1.9.2. I have a problem installing gems.

I get the following error message: gem install capistrano no such file to download - rubygems

Here's how I installed it (its ubuntu): ruby ​​-v ruby ​​1.9.2p0 (2010-08-18 version 29036) [i686-linux] gem -v there is no such file to download - rubygems

Does anyone know how to fix this?

--- EDIT ----
OK, so I tried to fix it by removing the ruby ​​and reinstalling it.
But no luck! :(
rvm remove 1.9.2; rvm install 1.9.2

does not work.

+4
source share
2 answers

I think that when this happens, it means that rubygems were not installed for the current version or not found. In the latter case, the PATH problem is mentioned in other answers here. If rubygems were NOT installed, try the following:

$ rvm rubygems current 

rvm will download and install the latest rubigems for your installation. You will probably need to reinstall all the gems for this rvm profile at this point.

+2
source

So, to solve this problem, I did the following. Log in to my ec2 management console .. selected an image and deleted it!

Then a new ubuntu image appeared. run some commands .. and voila problem is solved.

For those who have the same problem. Sorry, but I have no answer. I just gave up (after hours of searching and trying, etc.).

-1
source

All Articles