macportエラー: can’t read “build.cmd”

以下のエラーが出た時は、

Unable to execute port: can’t read “build.cmd”: Failed to locate ‘make’ in path: ‘/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin’ or at its MacPorts configuration time location, did you move it?

Xcodeを開いてOpen Developer Tool -> More Developer Tools…をクリックする。

ダウンロードページから適切なバージョンの“Command Line Tool for Xcode”の最新版をダウンロードしてインストールする。