0

如果我結帳或撥叉the rails project on github,運行bundle install時出現錯誤,表明無法找到鏈輪導軌。我如何獲得這些寶石安裝?捆綁安裝無法在導軌上工作

new-host-4:rails scott$ bundle install 
Updating git://github.com/rails/arel.git 
Updating git://github.com/brynary/rack-test.git 
Updating git://github.com/rails/jquery-rails.git 
Updating git://github.com/rails/coffee-rails.git 
Updating git://github.com/rails/journey.git 
Updating git://github.com/rails/activerecord-deprecated_finders.git 
Updating git://github.com/rails/sprockets-rails.git 
Updating git://github.com/fxn/sdoc.git 
Fetching gem metadata from https://rubygems.org/. 
Error Bundler::HTTPError during request to dependency API 
Fetching full source index from https://rubygems.org/ 
Could not find gem 'sprockets-rails (~> 2.0) ruby', which is required by gem 'rails (>= 0) ruby', in any of the sources. 
+0

您是否試圖安裝Rails 4.0或最新的Rails穩定版? –

+0

@JesseWolgamott - 只要做一個https://github.com/rails/rails.git結帳我猜會是rails 4.0?我也可以嘗試一個穩定的分支。我將如何獲得最新的工作? –

+0

是的,那就是Rails 4.0,並且還沒有發佈......你能描述一下你試圖完成的任務嗎? –

回答

0

OK,你希望走這條路則:https://github.com/rails/rails-dev-box ...導軌回購不能在積極開發期間與捆綁器一起安裝。

+0

我想用我的工具進行調試和在代碼中玩耍。我想我會嘗試最新的穩定分支。 –

0

試試這個在您的寶石文件寫

gem "sprockets-rails", "1.0.0" 

然後,捆綁安裝

+0

這不是我的寶石文件,它是rails項目的gem文件。我仍然應該改變它? –

0

http://status.rubygems.org

RubyGems是有成長的煩惱,和問題。目前依賴API已關閉。所以這是它試圖通過rubygems解決依賴關係的失敗。爲了解決這個問題,你可以手動安裝你機器上的所有需求,然後捆綁應該使用本地副本。