Unable to use the MacPorts port command after installing a high-version OS X
Pod Update prompt:
Current platform "Darwin +" does not match expected platform "Darwin 13"
Need to download MacPorts source code compilation installation, the method is as follows:
From https://www.macports.org/guide/#installing. Macports.source
2.2.2. Source Install
If you installed macports using the package installer, skip this section. To install MacPorts from the source code, follow the steps below.
-
Download and extract The macports 2.3.1 Tarball. Either do using your browser and the Finder, or use the given commands in a terminal window.
$
curl-o https:// distfiles.macports.org/macports/macports-2.3.1.tar.bz2 $
tar XF macports-2.3.1.tar.bz2
Afterwards, perform the commands shown in the terminal window. If you wish to use a path other than /opt/local
, follow the instructions forinstalling multiple copies of MacPorts instead.
$
CD MACPORTS-2.3.1/ $
./configure $
make $
sudo make install
OK, you are done!
Unable to use the MacPorts port command after installing a high-version OS X