After Security Update 2018-005 Sierra on 10.12, can't install native gems?!
Before the update, people missing ruby.h needed to install commandline tools; I see it still at
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
But the fpm I installed with 'gem install fpm' now fails to run, complaining
-bash: /usr/local/bin/fpm: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
Sweet. Reinstalling fpm fails; the first problem seems to be ffi. 'sudo gem install ffi' fails with:
Building native extensions. This could take a while...
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.10.0/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20190115-16637-wd53jk.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h
The commandline tools are definitely installed; 'xcode-select --install' says
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
and no updates are available (except itunes).
I guess I'll try installing xcode 9.2 and its commandline tools (I've been using 8.0 and 8.2) and hope that magically brings back a working ruby.h...
This is on all four of my Mac OS 10.12 systems (macbook pro's and a mac mini).
MacBook Pro w/ Touch Bar (2018 or later)