現象
$ 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>
解決方法
- Xcode を開く
- 左上メニューの Xcode → Open Developer Tool → More Developer Tools... をクリック
- ブラウザから普通に Apple Developer に飛んでもいいかも
- Apple Developer にログイン
- "Command Line Tools for Xcode" を検索窓に入力するなどして表示→ダウンロード
- インストール