0

I am trying to run bundle install on a Mac but get an error:

An error occurred while installing nokogiri (1.6.8), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.8'` succeeds before bundling.

When I try to install nokogiri it tell me to use

bundle config build.nokogiri --use-system-libraries
    bundle install

Running that doesn't seem to fix the problem. Does anyone have ideas how to fix this?

Imran Ali
  • 2,223
  • 2
  • 28
  • 41
Aaron
  • 4,380
  • 19
  • 85
  • 141
  • have you see this related [SO post](http://stackoverflow.com/questions/5528839/why-does-installing-nokogiri-on-mac-os-fail-with-libiconv-is-missing?rq=1) – Imran Ali Nov 27 '16 at 01:57
  • Can you post your ruby version and OS? Also what happens when you try `gem install nokogiri -v '1.6.8'` – Dbz Nov 27 '16 at 02:08
  • Also check out one of [SO posts](http://stackoverflow.com/questions/25336035/gem-file-wont-update-or-install-with-bundler/25343391#25343391) – Dbz Nov 27 '16 at 02:13
  • 1
    Possible duplicate of ['Failed to build gem native extension' when I run bundle install](http://stackoverflow.com/questions/23668684/failed-to-build-gem-native-extension-when-i-run-bundle-install) – Jen Nov 27 '16 at 02:31
  • Hey Aaron, can you post what happens when you `gem install nokogiri -v '1.6.8'`? This will let us know the root of the problem – Dbz Nov 27 '16 at 20:50

0 Answers0