ROR 弃用警告 Desert-0.5.4

发布于 2024-12-06 13:48:07 字数 984 浏览 2 评论 0原文

所以我收到这个错误:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北恋 2024-12-13 13:48:07

弃用警告已添加到版本 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 reinstalling bcrypt (see related bug here).

南烟 2024-12-13 13:48:07

所以看起来我必须做的是添加
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 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文