Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to update MacPorts but get the following error.

sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.1 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is outdated, installing new version 2.1.2
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

When I follow

At stage 3 I get the following error. Is this important or can I continue with it?

Error: Unable to open port: can't read "build.pre_args": can't read "build.cmd": Failed to locate 'gnumake' 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?
share|improve this question
Is it possible that you haven't installed the Xcode command line tools on ML yet? I think MacPorts depends on those. – Nathan Greenstein Aug 1 '12 at 19:04
Adding to Nathan Greenstein's answer: Check this: Migrating a MacPorts install to a new major OS version or CPU architecture – lupincho Aug 1 '12 at 19:43
Nathan Greenstein answered you 14 months ago... please click Accept. – smci Oct 5 '13 at 8:37

Based on the error in your update, it appears that (as Nathan said) you haven't installed the Xcode commandline tools yet. You should be able to finish the update process after you've done that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.