ぐえあ。macOSの更新で何か壊れたわね
Installing nokogiri 1.10.9 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/Users/zunda/local/src/github.com/zunda/dango/vendor/bundle/ruby/2.7.0/gems/nokogiri-1.10.9/ext/nokogiri
/Users/zunda/.rbenv/versions/2.7.1/bin/ruby -I
/Users/zunda/.rbenv/versions/2.7.1/lib/ruby/2.7.0 -r
./siteconf20200801-4889-1h29epf.rb extconf.rb
checking if the C compiler accepts -I
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2... ***
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.
$ rbenv uninstall 2.7.1
$ rbenv install 2.7.1
:
BUILD FAILED (OS X 10.15.6 using ruby-build 20200401)
ぐーぬぬぬぬー
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
$ which rbenv
/usr/local/bin/rbenv
$ brew update
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
######################################################################### 100.0%
==> Pouring portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
もー
> Simply run the following command
>
> xcode-select --install
またきみか