Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.
On a smaller Slice?
1. Get gem path: gem env gem (e.g. /usr/local/lib/ruby/gems/1.8)
2. rm /usr/local/lib/ruby/gems/1.8/source_cache
or
1. sudo gem sources —clear-all
Try installing your gem.
When rubygems is being bad, I’ve taken to just downloading the gem and installing it from file. For slicers, especially those on smaller slices, this is probably the simplest solution.
I haven’t tried this myself, so, TIAYOR:
1. Install beta rubygem: gem update —system —source http://onestepback.org/betagems
or download/install from file: http://onestepback.org/betagems/gems/rubygems-update-0.9.4.3.gem
2. gem -v should return 0.9.4.3 or greater
The beta has a new option, ‘-B’ which sets a bulk download threshold. This is supposed to load the gems incrementally, reducing memory consumption at the cost of added time. It defaults to 500.
e.g. gem list -r -B 1000
You can also set the threshold in the .gemrc file. (easier than passing -B constantly)
From post:
http://www.mail-archive.com/rubygems-developers@rubyforge.org/msg00925.html
Using the beta and haven’t had any trouble. Updates work great.
It’s a known issue. The beta includes improvements that help resolve the problem. An upcoming repository fix will also help considerably.
I’m using the beta successfully.
I always thought this problem was Rubyforge, not Rubygems. On any odd day I may get that exact hang-up, but mostly it is fine.
The rubygem YAML index is getting quite large. Look at the memory consumption the next time a bulk update is performed. This is causing a lot of problems for users without much memory to spare.
http://gems.rubyforge.org/yaml <- index
If that’s up, and your memory usage is too, then it’s rubygems. :)
that’s great I am going to spot that… great gear!
I am having this issue as we speak (so to speak.. hehe). My Rails install was done via:
sudo gem install rails --no-rdoc --no-ri
That is ‘gem -v’ = 0.9.2
Then I did (as per juzzin’s comment)
rm /usr/local/lib/ruby/gems/1.8/source_cache
sudo gem update --system
Might have to run that one twice before you get a hook.
Then ‘gem -v’ = 0.9.4
Still slow on ‘gem update’. So reboot my slice and all is fine quick and snappy.
gem update --system --source http://segment7.net/
gem update --system --source http://segment7.net/ solution worked for me as well!
All,
Just to let you know there is an unknown problem right now with the
gems service on RubyForge that folks thought was Leopard related but
its not...I get the same thing in Tiger (and other OSes may get the
same):
gem search --remote jabber
*** REMOTE GEMS ***
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem ... (TypeError)
can't instantiate uninitialized class
We will identify the problem as soon as is possible and fix it...just
want to let folks know so you can know that your shinny new OS is OK ;-)
Best,
Rich
I'm trying to update to RubyGems 0.9.5 as Geoff recommends, but I get this:
sudo gem update --system --source http://segment7.net/
Updating RubyGems...
Need to update 3 gems from http://segment7.net/
...
complete
Attempting remote update of rubygems-update
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find rubygems-update (> 0) in any repository