require': incompatible library version - /home/suresh/.gem/gems/nokogiri-1.6.8/lib/nokogiri/nokogiri.so (LoadError)

匿名 (未验证) 提交于 2019-12-03 01:45:01

问题:

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

回答1:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!