why can't macports find make

Posted by GeoffreyF67 on Server Fault See other posts from Server Fault or by GeoffreyF67
Published on 2010-01-08T16:41:03Z Indexed on 2010/05/05 17:29 UTC
Read the original article Hit count: 304

Filed under:
|
|
|
|

I am trying to run macports like thus:

port install php5

When I do so, however, I get this error:

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? 

So I looked at my path:

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" 

and then looked to make sure make was in one of those dirs:

ls -l /Developer/usr/bin/make

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

And typing:

make

produces:

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

So I know that it's there.

But macports can't find it. Any ideas?

G-Man

© Server Fault or respective owner

Related posts about port

Related posts about macports