码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2015-02-03 22:46:17      阅读:962      评论:0      收藏:0      [点我收藏+]

标签:

安装了高版本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,大功告成!

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

标签:

原文地址:http://www.cnblogs.com/y500/p/4271135.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!