On Wed, Jan 6, 2016 at 7:54 PM, Craig L Russell <craig.russ...@oracle.com> wrote: > I ran into some trouble with whimsy secmail after branching a local > repository. > > tl;dr Nokogiri has trouble on MacOSX. It needs special treatment that we > might want to document for MacOSX users.
tl;dr I'm not seeing that on my Mac machine, but it does seem to be a common problem with a documented fix: http://www.nokogiri.org/tutorials/installing_nokogiri.html#mac_os_x (look for iconv) Meanwhile, here is what happens on my machine: $ system_profiler SPSoftwareDataType Software: System Software Overview: System Version: OS X 10.11.2 (15C50) Kernel Version: Darwin 15.2.0 Boot Volume: Macintosh HD Boot Mode: Normal Computer Name: Sam’s iMac User Name: Sam Ruby (rubys) Secure Virtual Memory: Enabled System Integrity Protection: Enabled Time since boot: 13 days 17:32 $ sudo gem uninstall nokogiri -v 1.6.7.1 Password: Successfully uninstalled nokogiri-1.6.7.1 $ bundle install Fetching gem metadata from https://rubygems.org/.......... Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Using rake 10.4.2 Using ast 2.2.0 Using crass 1.0.2 Using execjs 2.6.0 Using ffi 1.9.10 Using json 1.8.3 Using rb-fsevent 0.9.7 Using rb-inotify 0.9.5 Using listen 3.0.5 Using mime-types 2.99 Using mail 2.6.3 Using mini_portile2 2.0.0 Installing nokogiri 1.6.7.1 with native extensions Using nokogumbo 1.4.7 Using parser 2.2.3.0 Using puma 2.15.3 Using rack 1.6.4 Using rack-protection 1.5.3 Using ruby-ldap 0.9.17 Using ruby2js 2.0.12 Using sanitize 4.0.1 Using tilt 2.0.2 Using sinatra 1.4.6 Using thread_safe 0.3.5 Using tzinfo 1.2.2 Using tzinfo-data 1.2015.7 Using wunderbar 1.0.11 Using whimsy-asf 0.0.69 Using zip 2.0.2 Using bundler 1.10.6 Bundle complete! 11 Gemfile dependencies, 30 gems now installed. Use `bundle show [gemname]` to see where a bundled gem is installed. $ xcode-select -version xcode-select version 2343. - Sam Ruby > Following the instructions: > > 14 15:01 git clone https://github.com/apache/whimsy.git --branch > secmail > worked fine > 19 15:02 cd whimsy/www/secmail/ > worked fine > 21 15:02 rake fetch1 > failed > 22 15:02 rake server > failed > clr% sudo gem install bundler > worked > clr% rake fetch1 > failed > Installing nokogiri 1.6.7 with native extensions > > Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native > extension. > > /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby > extconf.rb > checking if the C compiler accepts ... yes > checking if the C compiler accepts > -Wno-error=unused-command-line-argument-hard-error-in-future... no > Building nokogiri using packaged libraries. > Using mini_portile version 2.0.0 > checking for iconv.h... yes > checking for gzdopen() in -lz... yes > checking for iconv... no > ----- > libiconv is missing. Please locate mkmf.log to investigate how it is failing. > ----- > *** 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. > > Looked on the internet and found a solution. > clr% sudo gem install nokogiri -v '1.6.7' > failed: > Building native extensions. This could take a while... > ERROR: Error installing nokogiri: > ERROR: Failed to build gem native extension. > > /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby > extconf.rb > checking if the C compiler accepts ... yes > checking if the C compiler accepts > -Wno-error=unused-command-line-argument-hard-error-in-future... no > Building nokogiri using packaged libraries. > Using mini_portile version 2.0.0 > checking for iconv.h... yes > checking for gzdopen() in -lz... yes > checking for iconv... no > ----- > libiconv is missing. Please locate mkmf.log to investigate how it is failing. > ----- > *** 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. > > Tried another solution from the internet > clr% sudo gem install nokogiri -v '1.6.7' -- --use-system-libraries > Building native extensions with: '--use-system-libraries' > This could take a while... > Successfully installed nokogiri-1.6.7 > Parsing documentation for nokogiri-1.6.7 > unable to convert "\xCA" from ASCII-8BIT to UTF-8 for > lib/nokogiri/nokogiri.bundle, skipping > Installing ri documentation for nokogiri-1.6.7 > 1 gem installed > clr% rake fetch1 > receiving file list ... done > 201512 > > sent 42 bytes received 59740694 bytes 1783305.55 bytes/sec > total size is 59733277 speedup is 1.00 > officers-secretary/201512 > > More trouble when I came back to it and Nokogiri needed an update. > clr% rake server > Using mail 2.6.3 > Installing nokogiri 1.6.7.1 (was 1.6.7) with native extensions > > Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native > extension. > clr% sudo gem install nokogiri -v '1.6.7.1' > failed > clr% sudo gem install nokogiri -v '1.6.7.1' -- --use-system-libraries > worked > > So, is there something to be learned here? > > Craig > > > > > Craig L Russell > Architect, Oracle > http://db.apache.org/jdo > 408 276-5638 mailto:craig.russ...@oracle.com > P.S. A good JDO? O, Gasp! >