为什么不能macportfindmake

我试图像这样运行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" 

然后看看确定是在其中一个dirs:

 ls -l /Developer/usr/bin/make $ lrwxr-xr-x 1 root admin 7 Aug 7 16:47 /Developer/usr/bin/make -> gnumake 

然后input:

 make 

生产:

 make: *** No targets specified and no makefile found. Stop. 

所以我知道它在那里。

但是macports找不到它。 有任何想法吗?

G-人

你可以自己做一个符号链接:

which make (确保它在那里)
cd /usr/bin
ln -s /Developer/usr/bin/make make

还有一件事 – 一旦从OS X App Store安装了xCode 4.3,启动xCode,然后进入首选项 – >下载并安装“命令行工具”。 重启terminal,你将可以使用Make。

自从安装XCode以来,您是否升级了Mac OS? 系统更新,无论如何10.5到10.6,主要的可能会从/ usr / bin中删除这些程序。 下载最新的Xcode并重新安装。 应该把它们放回去。