running gem install nokogiri -v '1.6.1'
on osx 10.9 mavericks
getting:
make "DESTDIR=" clean
make "DESTDIR="
compiling html_document.c
cc1: error: unrecognized command line option "-Wdivision-by-zero"
make: *** [html_document.o] Error 1
make failed, exit code 2
I met this error when I tried to install nokogiri 1.6.6.2
on Mac 10.9, here is how I fixed that:
CC=llvm-gcc gem install nokogiri -v '1.6.6.2'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With