我在优胜美地(Yosemite)上安装的MacPorts在El Capitan上无法运行,因为尚不支持该安装。我想在这里删除Port安装,但是我无法运行任何Port命令。有谁知道如何清理它?
运行任何端口命令时,出现以下错误:
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
最佳答案
此解决方案对我有效,但不删除它:
xcode-select-安装
xcodebuild-许可证
wget https://distfiles.macports.org/MacPorts/MacPorts-2.3.3.tar.bz2
tar xzvf MacPorts-2.3.3.tar.bz2
cd MacPorts-2.3.3
./configure && make && sudo make安装
cd ../
rm -rf MacPorts-2.3.3 *
Source
关于macos - 如何在“不受支持的操作系统”(即El Capitan Public beta)上删除MacPorts?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31483432/