Nokogiri won't compile in Sierra

31 views
Skip to first unread message

Jeff Lee

unread,
Sep 28, 2016, 12:26:17 PM9/28/16
to nokogiri-talk

Here is the contents of the mkmf.log file:


"gcc -o conftest -I/Users/jlee/.rvm/rubies/ruby-2.2.3/include/ruby-2.2.0/x86_64$

clang: error: unknown argument: '-02'

checked program was:

/* begin */

1: #include "ruby.h"

2:

3: int main(int argc, char **argv)

4: {

5:   return 0;

6: }

/* end */


I ran this as follows:


ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install nokogiri


xcode-selet --install was run and all is updated and as it should be, so I'm a bit confused.  Suggestions?

Olivia

unread,
Oct 11, 2016, 9:57:33 AM10/11/16
to nokogiri-talk
Had a similar issue. Here's how I resolved it:

`xcode-select --install`
A pop-up will ask you if you want to install shell commands for xcode. Say yes.

Then, installing the gem should work.
Reply all
Reply to author
Forward
0 new messages