Port
為什麼macports找不到make
我正在嘗試像這樣執行macports:
port install php5
但是,當我這樣做時,我收到此錯誤:
Error: Unable to open 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?
所以我查看了我的路徑:
declare -x PATH="/Developer/usr/bin:/opt/subversion/bin:/opt/local/bin:/opt/local/sbin:/usr/local/php5/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
然後確保 make 位於其中一個目錄中:
ls -l /Developer/usr/bin/make $ lrwxr-xr-x 1 root admin 7 Aug 7 16:47 /Developer/usr/bin/make -> gnumake
並輸入:
make
產生:
make: *** No targets specified and no makefile found. Stop.
所以我知道它就在那裡。
但是macports找不到它。有任何想法嗎?
G人
您可以自己製作符號連結:
which make
(確保它在那裡) `cd /usr/binln -s /Developer/usr/bin/make make`
還有一件事 - 從 OS X App Store 安裝 xCode 4.3 後,啟動 xCode,然後轉到 Preferences -> Downloads 並安裝“命令行工具”。重新啟動終端,您將能夠使用 Make。