From c623c84fa9119cfe662b109b62b6db80a79de31d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Bu=CC=88gling?= Date: Wed, 7 Jan 2015 16:47:16 +0100 Subject: [PATCH] Use have_header() to check for the existence of iconv.h --- ext/nokogiri/extconf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/nokogiri/extconf.rb b/ext/nokogiri/extconf.rb index ce2e19b3549..aef64d683ca 100644 --- a/ext/nokogiri/extconf.rb +++ b/ext/nokogiri/extconf.rb @@ -436,10 +436,10 @@ def install ] end else - if darwin_p && !File.exist?('/usr/include/iconv.h') + if darwin_p && !have_header('iconv.h') abort <<'EOM'.chomp ----- -The file "/usr/include/iconv.h" is missing in your build environment, +The file "iconv.h" is missing in your build environment, which means you haven't installed Xcode Command Line Tools properly. To install Command Line Tools, try running `xcode-select --install` on