I can't get MacPorts to work.
I am running Mac OS X Mountain Lion. I recently updated MacPorts by running "sudo port selfupdate", and it successfully updated the package list. When I tried to download a package I got this message:
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
---> Computing dependencies for lynxError: Unable to execute 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?
I have XCode installed on my computer. It's version 3.1.3 and located in /Developer/Applications. I can't tell if the problem is that XCode is out of date, or it's in the wrong directory. I know where I can find the make utility (there's a symbolic link to it in /Developer/usr/bin) so I can easily edit my .bashrc file to add that to $PATH. So my questions are:
1. What version of XCode do I need? The newest version only works on 10.9.4 or higher, so I can't get it. I will need an older version. Any pointers?
2. Do I actually need a newer version of XCode or can I fix this problem by just adding the path for make to $PATH?
3. What is build.cmd? Is this something that MacPorts needs make in order to read? I'm not familiar with the .cmd extension.
MacBook Pro, OS X Mountain Lion (10.8)