安装了高版本OS X 之后无法使用MacPorts的port命令

安装了高版本OS X 之后无法使用MacPorts的port命令

pod update提示:

Current platform "darwin 14" does not match expected platform "darwin 13"

需要下载MacPorts源码编译安装,方法如下:

来自 https://www.macports.org/guide/#installing.macports.source

 

If you installed MacPorts using the package installer, skip this section. To install MacPorts from the source code, follow the steps below.

  1. Download and extract the MacPorts 2.3.1 tarball. Either do so 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
  2. 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,大功告成!

posted on 2015-02-03 21:51  再问天  阅读(803)  评论(2编辑  收藏  举报