开发者

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://gemcutte开发者_如何学Cr.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?


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.


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)


This is working for me with the following sources defined:

http://gems.rubyforge.org/
http://gems.github.com

as I said this is working for me:

gem install thinking-sphinx \
>  --source http://gemcutter.org
If you're upgrading, you should read this:
http://freelancing-god.github.com/ts/en/upgrading.html

Successfully installed thinking-sphinx-1.3.2
Successfully installed activesupport-2.3.4
2 gems installed
Installing ri documentation for thinking-sphinx-1.3.2...
Installing ri documentation for activesupport-2.3.4...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜