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

转载于:https://www.cnblogs.com/y500/p/4271135.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值