yumulog

北海道の大学教員/情報科学研究者の日記

MacPorts で port install しようとしたら make がないと言われた時の対処法

環境
現象
$ sudo port install libtool
Password:
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
--->  Computing dependencies for libtoolError: 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?
To report a bug, see <http://guide.macports.org/#project.tickets>
解決方法
  1. Xcode を開く
  2. 左上メニューの Xcode → Open Developer Tool → More Developer Tools... をクリック
    • ブラウザから普通に Apple Developer に飛んでもいいかも
  3. Apple Developer にログイン
  4. "Command Line Tools for Xcode" を検索窓に入力するなどして表示→ダウンロード
  5. インストール