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

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
anon_swe
  • 8,791
  • 24
  • 85
  • 145

1 Answers1

0

To get rid of the warning, (re)install the Nokogiri gem with:

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

also check similar questions : 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

Community
  • 1
  • 1
Mostafa Hussein
  • 11,063
  • 3
  • 36
  • 61