文章

MacPorts 迁移至 EI Capitan

老版本的MacPorts在EI Capitan下有兼容性问题。今天运行报错如下:

Error: Current platform “darwin 15” does not match expected platform “darwin 14” Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration OS platform mismatch while executing “mportinit ui_options global_options global_variations” Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch

搜索解决方案: http://stackoverflow.com/questions/31483432/how-do-i-remove-macports-on-an-unsupported-os-i-e-el-capitan-public-beta

参考之进行重新安装,依次执行命令:

xcode-select —install
xcodebuild -license

从官网下载安装包: https://www.macports.org/install.php

直接利用安装包安装即可。

所有代码已上传至Github:https://github.com/lihongzheshuai/yummy-code

GESP 学习专题站:GESP WIKI

"luogu-"系列题目可在洛谷题库进行在线评测。

"bcqm-"系列题目可在编程启蒙题库进行在线评测。

欢迎加入Java、C++、Python技术交流QQ群(982860385),大佬免费带队,有问必答

欢迎加入C++ GESP/CSP认证学习QQ频道,考试资源总结汇总

欢迎加入C++ GESP/CSP学习交流QQ群(688906745),考试认证学员交流,互帮互助

GESP/CSP 认证学习微信公众号
GESP/CSP 认证学习微信公众号
本文由作者按照 CC BY-NC-SA 4.0 进行授权