Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install gemcutter as a Ruby Gem source

I'm trying to install the thinking sphinx gem, which is on gemcutter.org

When I run the command

gem sources -a http://gemcutter.org

I get the error:

Error fetching http://gemcutter.org:
bad response Not Found 404 (http://gemcutter.org/specs.4.8)

If I change the above URL to http://gemcutter.org.specs.4.8.gz it finds a file. How do I tell rubygems to download with the .gz extension?

like image 924
Mike Sutton Avatar asked Nov 08 '09 14:11

Mike Sutton


People also ask

Where are RubyGems installed Windows?

When you use the --user-install option, RubyGems will install the gems to a directory inside your home directory, something like ~/. gem/ruby/1.9. 1 . The commands provided by the gems you installed will end up in ~/.

Where can I find RubyGems?

You may browse and search for gems using the RubyGems website, or use the gem command. Using gem search -r , you can search RubyGems' repository. For instance, gem search -r rails will return a list of Rails-related gems. With the --local ( -l ) option, you would perform a local search through your installed gems.

How do gems work in Ruby?

Gems can be used to extend or modify functionality in Ruby applications. Commonly they're used to distribute reusable functionality that is shared with other Rubyists for use in their applications and libraries. Some gems provide command line utilities to help automate tasks and speed up your work.


2 Answers

It looks like a temporary Gemcutter failure. It works fine to me.

Make sure you are running the latest RubyGems version and install the latest gemcutter gem.

$ gem install gemcutter --source http://gemcutter.org

With the gemcutter GEM you type gem tumble to add Gemcutter as source.

$ gem tumble

EDIT. I just noticed you are using a really outdated RubyGems version. Update RubyGems first.

$ gem update --system

If it tells you there's nothing to update, you have a buggy version (RubyGems 1.2 selfupdate was buggy). Upgrade with the following command.

$ gem install rubygems-update 
$ update_rubygems

Then add the source.

like image 54
Simone Carletti Avatar answered Sep 29 '22 08:09

Simone Carletti


What version of Rubygems are you running (gem --version)? If less than 1.3.5, you may want to update Rubygems and try again. (gem update --system)

like image 21
Avdi Avatar answered Sep 29 '22 08:09

Avdi