Opened 11 years ago
Closed 11 years ago
#40699 closed defect (invalid)
Disastrous port update from Lion to Mountain Lion
Reported by: | JAyenGreen (Jeff Greenberg) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.2.0 |
Keywords: | Cc: | ||
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I upgraded from Lion to Mountain Lion (Macbook Pro) with no issues. Then installed Xcode 5, which already had the command line tools set in preferences.
I then did:
sudo port -v upgrade outdated
It commented that the file list was outdated and that I might be better to try selfupdate...but continued on its way with the upgrade. The upgrade failed due to a build file not being found, so heeding the suggestion, I tried
sudo port -v selfupdate
The tail end of that is:
checking whether the C compiler works... no configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/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/tarballs/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 Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
At this point I have no clue what state I'm in or what to do about it.
Change History (1)
comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Component: | ports → base |
---|---|
Description: | modified (diff) |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
"C compiler cannot create executables" is the most common error you'll see if you haven't installed the command line tools. Xcode does not automatically install or update the command line tools, so please check the preferences window again to make sure your command line tools are installed. You can verify by running "clang -v" and "xcodebuild -version" in the terminal.
xcodebuild
should mention Xcode 5, andclang
should be version 5 as well.Next, when updating the OS version, you must follow migration procedures.
Finally, this issue tracker is for bug reports and feature requests, not technical support. If you need further support, please write to the macports-users mailing list.