macports卸载问题

发布于 2024-10-04 06:19:43 字数 282 浏览 0 评论 0原文

我最初使用 macports 安装了 haskell 6.10.4,但由于其中存在一些错误,我尝试卸载它并直接从 haskell 站点安装较新的版本 6.12.3。

安装程序工作正常,但是当我启动 ghci 时,它默认为 macports 版本 6.10.4,显然没有卸载。

我尝试使用:

sudo ports uninstall haskell

摆脱 macports 版本,显然没有成功。如何让 macports 完全擦除它放在我驱动器上的版本?

I originally installed haskell 6.10.4 using macports, but due to some bugs in it, I tried uninstalling it and installing the newer version 6.12.3 directly from the haskell site.

The installer worked fine, but when I start up ghci, it defaults to the macports version 6.10.4 that apparently wasn't uninstalled.

I attempted to use:

sudo ports uninstall haskell

to get rid of the macports version, apparently unsucessfully. How do I get macports to totally wipe the version that it put on my drive?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你穿错了嫁妆 2024-10-11 06:19:43

如果您安装了依赖于haskell的项目,那么您需要先卸载它们,或者您可以尝试使用--follow-dependents标志:

sudo port uninstall - -follow-dependents haskell

或者,您可以使用 --force 开关,无论如何,它只会对 haskell 进行核攻击,但随后您可能会损坏其他项目依赖它。

是的,您可以做的另一件事是确保您手动安装的 haskell 版本的路径位于 $PATH 上的 macports 路径之前。

If you have installed items that depend on haskell then you need to uninstall those first or you can try using the --follow-dependents flag:

sudo port uninstall --follow-dependents haskell

Alternatively you can use the --force switch which will nuke only haskell no matter what, but then you may have other items broken which depend on it.

YEa another thing you could do is just make sure the path to the version of haskell you manually installed is before the path to macports on your $PATH.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文