Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

sudo port selfupdate
Password:
--->  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 https://trac.macports.org/wiki/Migration

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
7  
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
1  
Adding to Nathan Greenstein's answer: Check this: trac.macports.org/wiki/Migration: 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.