不受支持的操作系统

不受支持的操作系统

本文介绍了如何在“不受支持的操作系统"上删除MacPorts?即El Capitan Public beta?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在优胜美地(Yosemite)上安装的MacPorts在El Capitan上无法运行,因为尚不支持该安装.我想在这里删除Port安装,但是我无法运行任何Port命令.有谁知道如何清理它?

The MacPorts installation that I had on Yosemite doesn't work on the El Capitan since it isn't supported yet. I want to remove the Port installation here but I'm not able to run any of the Port commands. Does anyone have an idea how to clean it up?

在运行任何端口命令时,出现以下错误:

On running any port command, I get the following error:

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

推荐答案

我只是继续并手动删除了文件(使用rm):

I just went ahead and manually removed the files (using rm):

sudo rm -rf /opt/local \
    /Applications/DarwinPorts \
    /Applications/MacPorts \
    /Library/LaunchDaemons/org.macports.* \
    /Library/Receipts/DarwinPorts*.pkg \
    /Library/Receipts/MacPorts*.pkg \
    /Library/StartupItems/DarwinPortsStartup \
    /Library/Tcl/darwinports1.0 \
    /Library/Tcl/macports1.0 \
    ~/.macports

似乎没有留下任何剩菜或破坏任何东西.

It didn't seem to leave any leftovers or break anything.

但是要注意的一件事是,mactex似乎已安装在同一目录中,因此也被删除了.我没有意识到我在同一目录中.如果您要重复相同的步骤,请记住这一点.

One thing to note however is that mactex seems to have been installed in the same directory so that got removed as well. I didn't realize that I had that in the same directory. If you're going to repeat the same steps, keep this in mind.

这篇关于如何在“不受支持的操作系统"上删除MacPorts?即El Capitan Public beta?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 05:36