Could not find rails (> 0) in the repository
Posted: October 24th, 2006 | Author: Joakim Andersson | Filed under: popular, rails | 23 Comments »If you get this when trying to install rails with rubygem you apparently need to remove your source cache.
Not totally obvious.
Update: As you can see from the comments re-running the command should solve it for most.
I ran into this error as well. after much trial and error I discovered that not using root (sudo) to unpack the original ruby and gems files caused the error. suspect that not using sudo means that certain objects are not extracted or are not extracted with the required permissions.
Ok, I remove the source_cache, but “Could not find rails (> 0) in the repository” still there.
Hmm, that helped me but I had the problem quite a while ago maybe there is a new problem giving the same error.
I googled a bit and found this thread on the Riding Rails blog that discusses this problem.
Maybe you should try the suggestions giving in that thread, like:
I had the same issue. I just re-ran the command and it worked fine. I learnt this while installing RoR on Cygwin.
Re-running the command did it for me aswell ( Debian Sarge).
I wonder why that didn’t help for me. But anyway, good that it worked for you two!
[...] told me this was the most common solution, but the last comment was the winner. Run gem install rails -y the second time and you’re [...]
Worked for me to on Tiger 10.4, re running the command.You should not need to unpack using sudo or delete the source cache.
I had the same problem, using gems 0.9.3, but when I backed out to 0.9.2, it worked first time.
Fedora 7, same problem for any gem.
did gem update –system and removed source_cache and after three more tries – it worked!
This has been said before, but I will say it again, re-running the command also solved the problem for me. (Fedora Core 6)
I did it and it works.
I did everything as root. I uninstall my multiple ruby, rubygem, installation I downgrade to autoconf 2.60 I recompile ruby I install gem I install “gem install rubygems-update” I install “gem update –system”
and it works
FYI: I had the same issue and indeed; re-run the command worked.
Yea, re-running it seems to work.. strange, but simple, anyone experiencing this problem should just re-run it until it works. Thanks people!
Re-running the command for OS X 10.4 worked for me as well. Hmm. Go figure.
Did not work, I tried about 10 times.
I keep getting the same error after deleting source_cache and running gem update –system.
Jamal, run gem update –system twice without deleting the source_cache after the first run.
so the order would be delete sourc_cache run gem update –system run gem update –system
on Mac OSX 10.4 PPC building from source a la hivelogic with Ruby 1.8.6 and Gem 0.9.4
> sudo gem install rails –include-dependencies –failed
> sudo rm -r /PATH/TO/GEM/1.8/source_cache > sudo gem install rails –include-dependencies –failed > sudo gem install rails –include-dependencies WORKED, albeit REALLY slowly….
seemingly it was the re-run that made it work for me and not the clearing of source_cache.
James, many thanks for this – re-running it worked for me too on Mac OSX 10.4 intel
Thanks, this worked for me, but, I had to close and open a new shell. Can’t imagine why that would matter! Thanks again!
I deleted the caches and did the gem update, then ran gem install rails –include-dependencies and got a 404 error. Tried it again, and it worked! Thanks!
sudo rm -f /PATH/TO/GEM/1.8/source_cache sudo gem update sudo gem update
Confirmation this works on Ubuntu Hardy Heron when I was having this problem! Thanks!
[...] rails (> 0) in the repository”, den Befehl einfach nochmal ausführen. Hilft das nicht, dann hier die Comments [...]