2011-10-26 169 views
2
brandon$ bundle 
Fetching source index for http://rubygems.org/ 
Using rake (0.9.2.2) 
Using log4r (1.1.9) 
Using XMLCanonicalizer (1.0.1) 
Using multi_json (1.0.3) 
Using activesupport (3.1.1) 
Using builder (3.0.0) 
Using i18n (0.6.0) 
Using activemodel (3.1.1) 
Using erubis (2.7.0) 
Using rack (1.3.5) 
Using rack-cache (1.1) 
Using rack-mount (0.8.3) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.0.3) 
Using actionpack (3.1.1) 
Using mime-types (1.17.1) 
Using polyglot (0.3.2) 

Gem::Package::FormatError: corrupt gem (Gem::Package::TarInvalidError: tar is corrupt, name contains null byte) in /Users/brandon/.rbenv/versions/1.9.3-rc1/lib/ruby/gems/1.9.1/cache/treetop-1.4.10.gem 
An error occured while installing treetop (1.4.10), and Bundler cannot continue. 
Make sure that `gem install treetop -v '1.4.10'` succeeds before bundling. 

我已經刪除了ruby和rvm,安裝了rbenv並重新安裝了ruby。這是1.9.3-rc1,但同樣的事情發生在1.9.2-p290。我試圖刪除/Users/brandon/.rbenv/versions/1.9.3-rc1/lib/ruby/gems/1.9.1/cache/無濟於事。我不確定此時該轉向哪裏。無法安裝寶石 - tar損壞

此外,它並不總是與樹梢寶石發生。其他時候,它與activemodel或其他寶石。

回答

3

它看起來像你有問題的連接(假設你在防火牆後面)。 嘗試使用其他互聯網連接(如移動寬帶)。

+0

我最終不得不將我的DNS提供者從opendns切換到google dns。這似乎解決了它。很奇怪。 –