Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing nokogiri error: unrecognized command line option "-Wdivision-by-zero"

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
like image 205
Christian Schlensker Avatar asked Jan 13 '14 22:01

Christian Schlensker


1 Answers

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'
like image 97
ExiRe Avatar answered Oct 15 '22 22:10

ExiRe