RStudioのupgradeの際のエラー
作成日: 2025/5/20
Homebrewを使ってRStudioをアップグレードしようとしたら次のようなエラーが出た。
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Command Line Toolsがないことに起因するらしい。先日macOSをアップデートしたのでおそらくそれが原因だと思う。
xcode-select --installをしてCommand Line Toolsを入れてから再度brew upgrade rstudioをした。
すると今度はError: Cask 'rstudio' is not installed.との表示。brew listだとリスト内に出てくるのに。
しかたがないので,Applicationsのフォルダから手動で消してからbrew install rstudioで再インストールしたら無事にインストールされた。
参考にしたサイト
https://blog.ketus-ix.work/entry/2024/04/19/073229