Migrating to Yosemite---cannot run 'port -qv installed' after OS upgrade

Clemens Lang cal at macports.org
Sun Oct 19 11:05:43 PDT 2014


----- On 19 Oct, 2014, at 19:58, Leo Singer aronnax at macports.org wrote:

> I just upgraded my system to Yosemite. Unfortunately, I did not get the list of
> installed ports and uninstall them before I upgraded the OS. Now it is too
> late:
> $ port -qv installed
> Error: Current platform "darwin 14" does not match expected platform "darwin 13"
> Error: If you upgraded your OS, please follow the migration instructions:
> https://trac.macports.org/wiki/Migration
> OS platform mismatch
>    while executing
> "mportinit ui_options global_options global_variations"
> Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch

It isn't too late. Upgrade your copy of MacPorts, then get the list of ports.
Remember that upgrading MacPorts itself will not touch the database of installed

> P.S. Note that the migration instructions may be clearer if they are organized
> in chronological order, i.e., the 'port -qv installed', etc. might come before
> upgrading the OS and reinstalling Xcode.

Sure, you could do that. But, as you noticed, it wouldn't work if a user had
already upgraded.

Clemens Lang

More information about the macports-users mailing list