Solved: ‘configure returned error 77’ in Mac Ports

I’m posting this in the hopes that the next person stumped by this will find it…

Using Mac Ports, I just tried to install mtr, but received a cryptic error during compilation:

Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_mtr/work/mtr-0.75" && ./configure --prefix=/opt/local --without-gtk " returned error 77

This didn’t convey much information to me. I then tried installing wget for something separate, only to get this:

Error: 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?

Ah-ha! No, I didn’t move it. I don’t have it. The real fix is to install XCode, which is on your Snow Leopard install DVD. (I believe it can be downloaded from the Internet, too, if need be.) After installing XCode and restarting,

Leave a Reply

Your email address will not be published. Required fields are marked *