Running MacPorts on macOS 12?

Joshua Root jmr at
Tue Jun 8 06:11:21 UTC 2021

First of all, please be aware of 

> Sorry for bugging the mailing list with a day-one beta.
> Trying to run macports with 'sudo port’ errors out with a OS platform mismatch error.
> Error: Current platform "darwin 21" does not match expected platform "darwin 20"
> Error: If you upgraded your OS, please follow the migration instructions:
> OS platform mismatch
>     while executing
> "mportinit ui_options global_options global_variations"
> Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
> Is there a workaround to use MacPorts (knowing that it’s unsupported and data loss might happen)
> before any official support comes out?

The solution is in the error message: you upgraded to a new OS version, 
so you need to follow the Migration instructions. Since there is 
obviously no binary installer for this OS version, step 2 "install the 
base MacPorts system for your new platform" will need to be done by 
installing from source.


- Josh

More information about the macports-users mailing list