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.