开发者

macports uninstall problem

开发者 https://www.devze.com 2023-01-26 20:56 出处:网络
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.

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消