0

While running the server, i am getting the error incompatible library version.Already Nokogiri is installed in my system.Any Advice

1 Answers1

0

I would reinstall rvm or rbenv. Also try:

$gem uninstall nokogiri libxml-ruby
$brew update
$brew uninstall libxml2
$brew install libxml2 --with-xml2-config
$brew link --force libxml2
$brew install libxslt
$brew link --force libxslt

$bundle config build.nokogiri -- --with-xml2-dir=/usr --with-xslt-    dir=/opt/local --with-iconv-dir=/opt/local
$bundle install

I had a similiar issue when upgrading to rails 5. This worked for me.

gkstr1
  • 51
  • 3