ROR 弃用警告 Desert-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)
times like a Million 调用 ruby 脚本/服务器后 在这个警告之前
=> Booting WEBrick
=> Rails 2.3.12 application starting on http://0.0.0.0:3000
,然后在 activesupport 错误之后,我得到了一堆
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
我的问题是我如何添加 gems 或安装东西以使东西运行?如果你想知道这是我从 svn 中提取的项目。
So I am getting this error:
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)
times like a million
after call ruby script/server
before this warning
=> Booting WEBrick
=> Rails 2.3.12 application starting on http://0.0.0.0:3000
and then after the activesupport error I get a bunch of
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.
and then after all these warnings and notes I get
/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
My questions is how I might add gems or install things in order to get things running? In case you are wondering this is a project I pulled from svn.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
弃用警告已添加到版本 2.3.9 中的
ActiveSupport
中(来源 此处)。它们只是警告。有关
Gem.source_index
注释,请参阅 这个问题。bcrypt
错误应通过重新安装bcrypt
来解决(请参阅相关错误 此处)。The deprecation warnings have been added to
ActiveSupport
in version 2.3.9 (source here). They're just that, warnings.For the
Gem.source_index
note, see this question.The
bcrypt
error should be solved by reinstallingbcrypt
(see related bug here).所以看起来我必须做的是添加
gem 'bcyrpt-ruby', :require =>;将“crypt”添加到 gemfile 中,然后调用 sudo gem install bcrypt-ruby :)
So it looks like what I had to do was add
gem 'bcyrpt-ruby', :require => "crypt" to the gemfile and then call sudo gem install bcrypt-ruby :)