Upgrade of MacPorts fails

Dominik Reichardt domiman at gmail.com
Tue Jul 31 01:58:04 PDT 2012


Nit directly solving this but...

First of all you upgraded to Mountain Lion and thus you will need to go through the migration process.
In my case I just nuked MacPorts, downloaded the ML installer of MacPorts and begun anew.

Second, since you updated Xcode as well you need to accept the xcode license again or sime ports will fail.

Am 31.07.2012 um 10:13 schrieb Jasper Frumau <jasperfrumau at gmail.com>:

> Just upgraded xCode to the latest version and upgraded to Mountain Lion. Wanted to upgrade MacPorts now as well. Got stuck:
> 
> sudo port -d selfupdate
> Password:
> DEBUG: Copying /Users/jasper/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
> DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/base
> --->  Updating MacPorts base sources using rsync
> receiving file list ... done
> ./
> deleting config.log
> 
> sent 42 bytes  received 8238 bytes  1840.00 bytes/sec
> total size is 3261808  speedup is 393.94
> MacPorts base version 2.1.1 installed,
> DEBUG: Rebuilding and reinstalling MacPorts if needed
> MacPorts base version 2.1.2 downloaded.
> --->  Updating the ports tree
> Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
> DEBUG: /usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports
> receiving file list ... done
> ./
> 
> sent 59 bytes  received 684965 bytes  13564.83 bytes/sec
> total size is 35704166  speedup is 52.12
> DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/ports/PortIndex_darwin_12_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/ports
> receiving file list ... done
> 
> sent 36 bytes  received 70 bytes  42.40 bytes/sec
> total size is 8547616  speedup is 80637.89
> --->  MacPorts base is outdated, installing new version 2.1.2
> DEBUG: Permissions OK
> Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl
> 
> checking build system type... i386-apple-darwin12.0.0
> checking host system type... i386-apple-darwin12.0.0
> checking target system type... i386-apple-darwin12.0.0
> checking MacPorts version... 2.1.2
> checking for sw_vers... /usr/bin/sw_vers
> checking for defaults... /usr/bin/defaults
> checking for xcode-select... /usr/bin/xcode-select
> checking Mac OS X version... 10.8
> checking Xcode location... /Applications/Xcode.app/Contents/Developer
> checking Xcode version... 4.4
> checking for gcc... /usr/bin/cc
> checking whether the C compiler works... no
> configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
> Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
> Exit code: 77
> DEBUG: Error installing new MacPorts base: command execution failed
>     while executing
> "macports::selfupdate [array get global_options] base_updated"
> Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
> 
> Any ideas how I can get MacPorts to do it all without these errors?
> 
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120731/b18d5a75/attachment.html>


More information about the macports-users mailing list