ライフハックの達人 〜成長の道中〜

ライフスタイルの改善やスキルや知識の向上に役立つ情報をお届けする、ライフハックと自己啓発のブログ。自分らしい豊かな暮らしを目指す方に役立つコンテンツが満載です。

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解決方法

この記事をシェアする


解体工事 水道屋 クリーニング

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解決方法

マックブックエアー M1チップで、githubを使おうと思って、git initとするとxcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

のエラーコメントが。。。

 

解決方法は簡単だったのでシェアします。

 

 

 

 

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解決方法

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解決方法

 

mac book air m1でgithub使おうと思ったら次のようなエラーが出ました。

 

❯ git --version
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

 

解決方法は簡単でしたので安心してください。

 

解決方法は次のコマンをを実行してください。

❯ xcode-select --install
xcode-select: note: install requested for command line developer tools
❯ git --version
git version 2.37.1 (Apple Git-137.1)

 

まとめ

今までは、WindowsにLinux(ubuntsu)を入れて、ドッカーを利用してPythonのプログラムを実行してきました。

今年からプログラムの動作環境をMACBOOK Airに変更しました。

なかなかなれなかったのですが、少しずつMACに慣れてきたので徐々にですが、プログラムについてもブログ記事にしていこうと思います。

 

ブログ後記

プログラムは独学でいろいろ勉強してきたのですが、やはり自分でプログラムを作るのは楽しいですね。

ウェブプログラミングはとても苦手でPHPとか、Javascriptとか、なかなか覚えられなかったのですが、Pythonはなんとなくですが、少しずつ続けてます。

C#とPythonが最近のお気に入りです。

今までは、レッツノートがとてもお気に入りだったのですが、MAC BOOK Airはプログラムを作るのにとても使いやすいので気に入ってます。

 

www.7mono.com