2011-09-25 64 views
1

所以我得到這個錯誤:ROR棄用警告沙漠0.5.4

DEPRECATION WARNING: ActiveSupport::Dependencies.load_paths is deprecated, 
please use autoload_paths instead. (called from load_paths at 
/opt/local/lib/ruby/gems/1.8/gems/desert-0.5.4/lib/desert/manager.rb:36) 

倍,如呼叫Ruby腳本/服務器 後一百萬 此警告之前

=> Booting WEBrick 
=> Rails 2.3.12 application starting on http://0.0.0.0:3000 

然後經過主動支持錯誤我得到一堆

NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. 
Gem.source_index called from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.12/lib/rails/gem_dependency.rb:78. 

然後所有這些警告和筆記我得到

/Users/anthonysierra/.gem/ruby/1.8/gems/bcrypt-ruby-2.1.4/lib/bcrypt_ext.bundle: [BUG] Segmentation fault 
ruby 1.8.7 (2010-12-23 patchlevel 330) [x86_64-darwin10] 

Abort trap 

我的問題是我如何添加寶石或安裝的東西,爲了讓事情運行?如果你想知道這是一個我從svn中獲得的項目。

回答

1

版本2.3.9(源here)中已將棄用警告添加到ActiveSupport。他們就是這樣,警告。

對於Gem.source_index注意,請參閱this question

bcrypt錯誤應該通過重新安裝bcrypt來解決(參見相關錯誤here)。

0

因此,它看起來像什麼,我要做的就是添加 寶石「bcyrpt-紅寶石」,:要求=>「墓穴」的Gemfile中,然後調用sudo的創業板安裝bcrypt-紅寶石:)

+1

感謝張貼這裏的解決方案。作爲獎勵:您可能想使用[rvm](http://beginrescueend.com/)。這樣你就不必使用'sudo'安裝你的寶石,你可以並行運行多個版本的Ruby。您也可以創建不同的'寶石'來避免衝突。 – rdvdijk