MacPortsでエラーの対処法


MacPortsで sudo port install apache2 で以下のエラーが発生


server:~ hoge$ sudo port install apache2
Password:
Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.
Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.
---> Building zlib
Error: org.macports.build for port zlib returned: 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?
Please see the log file for port zlib for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade openssl failed

の時の対処法

まずはXcodeを起動し
Xcode -> Open Developer Tool -> More Developer Tools…
を選択

ブラウザにログイン画面が表示されるので、AppleIDでログイン

Command Line Tools( OSバージョン ) for Xcode を選択し、ダウンロード&インストール

これで、エラーは解消されるはずです。

コメントは停止中です。