# Pastebin Gvd5D266 Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. current directory: /Users/matt/.gem/ruby/2.1.0/gems/nokogiri-1.6.8/ext/nokogiri /nix/store/z99p31v3cpxsrpb84rcsrg4mwh6gi407-ruby-2.1.10/bin/ruby -r ./siteconf20171206-58362-1mm4u1q.rb extconf.rb Using pkg-config version 1.1.9 checking if the C compiler accepts ... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/nix/store/z99p31v3cpxsrpb84rcsrg4mwh6gi407-ruby-2.1.10/bin/ruby --help --clean /nix/store/z99p31v3cpxsrpb84rcsrg4mwh6gi407-ruby-2.1.10/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /nix/store/z99p31v3cpxsrpb84rcsrg4mwh6gi407-ruby-2.1.10/lib/ruby/2.1.0/mkmf.rb:571:in `block in try_compile' from /nix/store/z99p31v3cpxsrpb84rcsrg4mwh6gi407-ruby-2.1.10/lib/ruby/2.1.0/mkmf.rb:522:in `with_werror' from /nix/store/z99p31v3cpxsrpb84rcsrg4mwh6gi407-ruby-2.1.10/lib/ruby/2.1.0/mkmf.rb:571:in `try_compile' from extconf.rb:138:in `nokogiri_try_compile' from extconf.rb:162:in `block in add_cflags' from /nix/store/z99p31v3cpxsrpb84rcsrg4mwh6gi407-ruby-2.1.10/lib/ruby/2.1.0/mkmf.rb:619:in `with_cflags' from extconf.rb:161:in `add_cflags' from extconf.rb:414:in `
' To see why this extension failed to compile, please check the mkmf.log which can be found here: /Users/matt/.gem/ruby/2.1.0/extensions/x86_64-darwin-16/2.1.0/nokogiri-1.6.8/mkmf.log extconf failed, exit code 1