正要 update gem 呢,老是连不上,是我这里网络的问题,还是 remote 的问题呀。
nasa@ubuntu:~/www$ ping -c 4 github.com
PING github.com (207.97.227.239) 56(84) bytes of data.
--- github.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3025ms
➜ ruby-china git:(master) ✗ bundle install
Fetching source index for http://ruby.taobao.org/
Could not find rubyzip-0.9.6.1 in any of the sources
有问题了?
我这里是好的——
john@John-ThinkPad-X220:~$ cat .gemrc
---
:backtrace: false
:benchmark: false
:bulk_threshold: 1000
:sources:
- http://ruby.taobao.org/
:update_sources: true
:verbose: true
gem: --no-ri --no-rdoc
john@John-ThinkPad-X220:~$ ls -l .rvm/gems/ruby-1.9.2-p290/gems/rubyzip* -d
drwxrwxr-x 4 john john 200 2011-12-29 10:14 .rvm/gems/ruby-1.9.2-p290/gems/rubyzip-0.9.5
john@John-ThinkPad-X220:~$ gem install rubyzip -v0.9.6.1
Fetching: rubyzip-0.9.6.1.gem (100%)
Successfully installed rubyzip-0.9.6.1
1 gem installed
john@John-ThinkPad-X220:~$ ls -l .rvm/gems/ruby-1.9.2-p290/gems/rubyzip* -d
drwxrwxr-x 4 john john 200 2011-12-29 10:14 .rvm/gems/ruby-1.9.2-p290/gems/rubyzip-0.9.5
drwxrwxr-x 4 john john 200 2012-02-19 09:39 .rvm/gems/ruby-1.9.2-p290/gems/rubyzip-0.9.6.1
今天又发生了,淘宝的镜像貌似缺 gem,我得到这个错误
Gem::RemoteFetcher::FetchError: bad response Not Found 404 (http://ruby.taobao.org/quick/Marshal.4.8/bunny-0.7.9.gemspec.rz)
An error occured while installing bunny (0.7.9), and Bundler cannot continue.
Make sure that gem install bunny -v '0.7.9'
succeeds before bundling.