Gem File won't update or install with bundler

淺唱寂寞╮ 提交于 2019-12-04 19:46:04

You might be missing some packages. Try installing them manually

For Mac OSX:

$ sudo port install libxml2 libxslt

With homebrew

$ brew install libxml2

Checkout this LINK here for more information. Goodluck!

Dbz

I found a solution that worked:

gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2

From: Nokogiri 'Failed to build gem native extension' when I run bundle install

Source's source: https://github.com/sparklemotion/nokogiri/issues/1099#issuecomment-43023208

Just type this in console: gem install nokogiri -v '1.6.3.1' then hit enter... After that finishes... run bundle

If you're using homebrew.. type: brew update then type brew doctor

Just resolved the same issue after I saw your post. It's a problem with Homebrew not including libicov with versions 9.0 and up. You'll need to manually install the library then install with the lib paths defined. See http://nokogiri.org/tutorials/installing_nokogiri.html

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