2011-09-25 69 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