【问题标题】:Nokogiri / bcrypt-ruby error?Nokogiri / bcrypt-ruby error?
【发布时间】:2013-09-26 12:47:56
【问题描述】:

我在尝试为我的数据库播种时遇到以下错误。我已经包含了 Nokogiri 和 bcrypt-ruby 并且没有指定版本号,所以它们应该没问题。

警告:Nokogiri 是针对 LibXML 版本 2.8.0 构建的,但已动态加载 2.7.8 耙中止! 无法激活 bcrypt-ruby (~> 3.0.0),已激活 bcrypt-ruby-3.1.2。确保将所有依赖项添加到 Gemfile。

我不知道如何解决这个问题。

想法?

提前致谢, 马里格斯

【问题讨论】:

    标签: ruby-on-rails ruby nokogiri bcrypt-ruby


    【解决方案1】:

    要消除警告,(重新)安装 Nokogiri gem:

    gem install nokogiri -- --with-xml2-dir=/usr --with-xslt-dir=/opt/local --with-iconv-dir=/opt/local
    

    也检查类似的问题:on Linux, how can I resolve WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0 ?

    Mac user and getting WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.7.3

    【讨论】:

      猜你喜欢
      • 2017-05-07
      • 2014-08-06
      • 2013-05-02
      • 2016-10-02
      • 1970-01-01
      • 1970-01-01
      • 2016-10-09
      • 2014-04-17
      • 1970-01-01
      相关资源
      最近更新 更多