Ruby Gem更新系统-Catch 22和302重定向
如果我试图在我的服务器上安装任何gem,那么我会得到一个302重定向Ruby Gem更新系统-Catch 22和302重定向,ruby,rubygems,gem,Ruby,Rubygems,Gem,如果我试图在我的服务器上安装任何gem,那么我会得到一个302重定向 gem install clickatell -V GET http://rubygems.org/latest_specs.4.8.gz 302 Found HEAD http://rubygems.org/specs.4.8.gz connection reset after 2 requests, retrying HEAD http://rubygems.org/specs.4.8.gz 302 Found 一篇关于
gem install clickatell -V
GET http://rubygems.org/latest_specs.4.8.gz
302 Found
HEAD http://rubygems.org/specs.4.8.gz
connection reset after 2 requests, retrying
HEAD http://rubygems.org/specs.4.8.gz
302 Found
一篇关于rubygems的文章建议做一个gem更新——系统
这当然只是gem本身的更新
我正在运行rubygems 1.3.1
最新版本是1.6.1
有没有一种方法可以让我更新Rubygems而不会陷入302重定向陷阱
问候,
凯文。我设法用
gem update --system -l -V --source http://production.cf.rubygems.org
Updating RubyGems
GET http://production.cf.rubygems.org/latest_specs.4.8.gz
200 OK
Updating rubygems-update
Installing gem rubygems-update-1.6.1
Using local gem /home/passenger/.rvm/gems/ruby-1.8.7-p249/cache/rubygems-update-1.6.1.gem
但这并没有解决我在任何其他gem上遇到的302个错误
要直接安装gems,您可以执行以下步骤:
1. go to http://rubygems.org/, search for 'your-gem', and copy the link
2. wget http://rubygems.org/downloads/your-gem.gem
3. gem install ./your-gem.gem --local
只需从源代码处安装最新版本的rubygems(目前最新版本为1.8.17):
应该有效:)按照rubygems.org的说明操作:
我发现手动安装可以帮助我获得最新的gem(RubyGems)您最终找到解决方案了吗?我也陷入了同样的困境。事实上,在我为Ruby 1.8.6安装做了
gem更新--system--source
之后gem更新现在可以工作了。:)旧的Gem版本是0.9.4,现在我有了1.3.6,然后运行Gem安装rails-V(这样你就可以看到现在的一切是多么美好和完美)
1. go to http://rubygems.org/, search for 'your-gem', and copy the link
2. wget http://rubygems.org/downloads/your-gem.gem
3. gem install ./your-gem.gem --local
wget http://http://production.cf.rubygems.org/rubygems/rubygems-1.8.17.tgz
tar -xzvf rubygems-1.8.17.tgz
cd rubygems-1.8.17.tgz
sudo ruby setup.rb