我正在尝试像这样运行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找不到它。有任何想法吗?
侠客