Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCC compilation error when installing Nokogiri

Tags:

ruby

rubygems

I'm trying to run bundle install but I'm getting the Error while trying to Install Nokogiri 1.10.3

Here is the error message from mkmf.log.

gcc -o conftest -I/home/chille/.rvm/rubies/ruby-2.5.1/include/ruby-2.5.0/x86_64-linux -I/home/chille/.rvm/rubies/ruby-2.5.1/include/ruby-2$
gcc: error: unrecognized command line option '-Wmisleading-indentation'
gcc: error: unrecognized command line option '-Wimplicit-fallthrough=0'
gcc: error: unrecognized command line option '-Wduplicated-cond'
gcc: error: unrecognized command line option '-Wrestrict'
like image 884
Denis Omerovic Avatar asked Jun 12 '19 16:06

Denis Omerovic


1 Answers

For those who do not read comments

Debian 10 users, if you find

 gcc: error: unrecognized command line option '-Wduplicated-cond'

in mkmf.log

brew unlink gcc

is what you are looking for. I spend an hour looking for an answer and yes, i once missed the answer here, but luckily i have returned and spotted it.

like image 196
mArtinko5MB Avatar answered Sep 17 '22 18:09

mArtinko5MB