12.17.07
Manually downloading and installing gems.
I’m getting ready to dive deeper into merb and wanted to install merb_activerecord. Unfortunately when I tried this I hit the following error:
$ gem install merb_activerecord Updating metadata for 32 gems from http://gems.rubyforge.org ................................ complete Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) OpenURI::HTTPError: 404 Not Found reading http://gems.rubyforge.org/gems/activesupport-2.0.2-.gem
So I tried “gem update activesupport” and hit the same error.
I went out to the ActiveSupport RubyForge page found that 2.0.2 was released today. So I went to http://gems.rubyforge.org (which redirected to http://gems.rubyforge.vm.bytemark.co.uk/gems) and the latest version available in 2.0.1. So I assume this is just an issue of needing to wait for data to shuffle around.
But I’m impatient.
So I downloaded the gem file from http://rubyforge.org/frs/download.php/29344/activesupport-2.0.2.gem and installed as:
$ gem install activesupport-2.0.2.gem Successfully installed activesupport-2.0.2 1 gem installed Installing ri documentation for activesupport-2.0.2... Installing RDoc documentation for activesupport-2.0.2...
When that was done I was able to successfully install merb_activerecord as follows:
$ gem install merb_activerecord Successfully installed merb_activerecord-0.4.3 1 gem installed Installing ri documentation for merb_activerecord-0.4.3... Installing RDoc documentation for merb_activerecord-0.4.3...
The lessons here are that just-released gems might not be available via “gem install” even though they are a listed dependency of other gems and that manually downloading and installing gems is trivial.
Max Russell said,
December 19, 2007 at 9:25 am
Thanks- normally not a fan of blogs, but I’ve been having a real pain with activesupport when trying to update rails…
Ed Ruder said,
June 10, 2008 at 12:57 am
This may be obvious to some, but it wasn’t to me–download the gem to a temp directory somewhere and execute the gem install activesupport-2.0.2.gem (or whatever gem you’re installing) _from that directory_.