sudo gem install ffi -v '1.9.23'
で原因不明のエラーが起きてしまっています。
これまでに試したことは幾つかあり
$softwareupdate --install -a
$brew upgrade
$brew update
など試してみたのですが全く動かずエラーからも何をすればいいかがわからず丸一日費やしてしまい、こちらに質問させていただいております。
近いところで
sudo gem install -n /usr/local/bin sass
もやってみたのですが、結局ほぼおなじエラーメッセージが返ってくるだけで進歩がない状態です。
sudo gem install ffi -v '1.9.23' Building native extensions. This could take a while... ERROR: Error installing ffi: ERROR: Failed to build gem native extension. current directory: /Users/NAME/.rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/ffi-1.9.23/ext/ffi_c /Users/NAME/.rvm/rubies/ruby-2.4.0/bin/ruby -r ./siteconf20180306-14300-1yeut6m.rb extconf.rb checking for ffi.h... no checking for ffi.h in /usr/local/include,/usr/include/ffi... yes checking for ffi_call() in -lffi... yes checking for ffi_closure_alloc()... no checking for ffi_raw_call()... no checking for shlwapi.h... no checking for rb_thread_blocking_region()... no checking for rb_thread_call_with_gvl()... yes checking for rb_thread_call_without_gvl()... yes creating extconf.h creating Makefile current directory: /Users/NAME/.rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/ffi-1.9.23/ext/ffi_c make "DESTDIR=" clean /Users/NAME/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem make (>= 0.a) with executable make (Gem::GemNotFoundException) from /Users/NAME/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems.rb:308:in `activate_bin_path' from /Users/NAME/.rvm/gems/ruby-2.4.0/bin/make:22:in `<main>' from /Users/NAME/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval' from /Users/NAME/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `<main>' current directory: /Users/NAME/.rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/ffi-1.9.23/ext/ffi_c make "DESTDIR=" /Users/NAME/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem make (>= 0.a) with executable make (Gem::GemNotFoundException) from /Users/NAME/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems.rb:308:in `activate_bin_path' from /Users/NAME/.rvm/gems/ruby-2.4.0/bin/make:22:in `<main>' from /Users/NAME/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval' from /Users/NAME/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `<main>' make failed, exit code 1 Gem files will remain installed in /Users/NAME/.rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/ffi-1.9.23 for inspection. Results logged to /Users/NAME/.rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0/ffi-1.9.23/gem_make.out
Brew doctorで確認したものは以下になります。
api $brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. We found the following "config" scripts: /Users/NAME/anaconda/bin/libdynd-config /Users/NAME/anaconda/bin/python3.5m-config /Users/NAME/anaconda/bin/freetype-config /Users/NAME/anaconda/bin/xslt-config /Users/NAME/anaconda/bin/libpng16-config /Users/NAME/anaconda/bin/libpng-config /Users/NAME/anaconda/bin/xml2-config /Users/NAME/anaconda/bin/python3.5-config /Users/NAME/anaconda/bin/python3-config /Users/NAME/anaconda/bin/curl-config /Users/NAME/.pyenv/shims/libdynd-config /Users/NAME/.pyenv/shims/python3.5m-config /Users/NAME/.pyenv/shims/llvm-config /Users/NAME/.pyenv/shims/python2-config /Users/NAME/.pyenv/shims/python3.4m-config /Users/NAME/.pyenv/shims/python3.6m-config /Users/NAME/.pyenv/shims/python2.7-config /Users/NAME/.pyenv/shims/python3.5-config /Users/NAME/.pyenv/shims/python-config /Users/NAME/.pyenv/shims/python3-config /Users/NAME/.pyenv/shims/python3.6-config /Users/NAME/.pyenv/shims/python3.4-config /Users/NAME/.pyenv/shims/libpng15-config Warning: Unbrewed dylibs were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected dylibs: /usr/local/lib/libbitcoinconsensus.0.dylib /usr/local/lib/libportaudio.2.dylib Warning: Unbrewed header files were found in /usr/local/include. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected header files: /usr/local/include/bitcoinconsensus.h /usr/local/include/portaudio.h Warning: Unbrewed .la files were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected .la files: /usr/local/lib/libbitcoinconsensus.la /usr/local/lib/libportaudio.la Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected .pc files: /usr/local/lib/pkgconfig/libbitcoinconsensus.pc /usr/local/lib/pkgconfig/portaudio-2.0.pc Warning: Unbrewed static libraries were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected static libraries: /usr/local/lib/libbitcoinconsensus.a /usr/local/lib/libportaudio.a Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: numpy portaudio node git Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. The following tools exist at both paths: idle easy_install pydoc python python-config git-cvsserver git-shell git-upload-pack tar git Consider setting your PATH so that /usr/local/bin occurs before /usr/bin. Here is a one-liner: echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile Warning: Some keg-only formulae are linked into the Cellar. Linking a keg-only formula, such as gettext, into the cellar with `brew link <formula>` will cause other formulae to detect them during the `./configure` step. This may cause problems when compiling those other formulae. Binaries provided by keg-only formulae may override system binaries with other strange results. You may wish to `brew unlink` these brews: openssl
よろしくお願いします。