byebugを使って、デバックをしたいのですがbyebugをインストールするところでつまづいています。
ググってもわからないため、解決方法を提案していただきたいです。
# 環境 $ ruby -v >> ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin18] $ brew -v >> Homebrew >=1.7.1 (shallow or no git repository) $ rbenv -v >> rbenv 1.1.2
# 実行したコマンド $ sudo gem install byebug
# エラーメッセージ Building native extensions. This could take a while... ERROR: Error installing byebug: ERROR: Failed to build gem native extension. current directory: /Users/***/.rbenv/gems/2.6.0/gems/byebug-11.0.1/ext/byebug /Users/***/.rbenv/versions/2.6.5/bin/ruby -I /Users/***/.rbenv/versions/2.6.5/lib/ruby/2.6.0 -r ./siteconf20191112-8196-c8krom.rb extconf.rb creating Makefile current directory: /Users/***/.rbenv/gems/2.6.0/gems/byebug-11.0.1/ext/byebug make "DESTDIR=" clean xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun current directory: /Users/***/.rbenv/gems/2.6.0/gems/byebug-11.0.1/ext/byebug make "DESTDIR=" xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun make failed, exit code 1 Gem files will remain installed in /Users/***/.rbenv/gems/2.6.0/gems/byebug-11.0.1 for inspection. Results logged to /Users/***/.rbenv/gems/2.6.0/extensions/x86_64-darwin-18/2.6.0-static/byebug-11.0.1/gem_make.out