macports卸载问题
我最初使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您安装了依赖于
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 onlyhaskell
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
.