0

I'm getting the below error when trying to seed my database. I've included Nokogiri and bcrypt-ruby and haven't specified a version number so they should be fine.

WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
rake aborted!
can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.2. Make sure all dependencies are added to Gemfile.

I'm not sure how to fix this.

Ideas?

Thanks in advance, Mariogs

4

1 回答 1

0

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

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

还检查类似的问题:在 Linux 上,如何解决警告:Nokogiri 是针对 LibXML 版本 2.8.0 构建的,但已动态加载 2.9.0?

Mac 用户并收到警告:Nokogiri 是针对 LibXML 版本 2.7.8 构建的,但已动态加载 2.7.3

于 2013-09-21T03:17:51.680 回答