gpt4 book ai didi

haskell - cabal install --avoid-reinstalls 到底做了什么?

转载 作者:行者123 更新时间:2023-12-02 14:14:53 28 4
gpt4 key购买 nike

我发现 --avoid-reinstalls 可以在 cabal 失败的地方构建软件包。它到底在做什么? Cabal 是否已经尝试避免重新安装,或者不应该这样做?

最佳答案

这个邮件列表帖子解释得很好:http://www.haskell.org/pipermail/beginners/2011-June/007502.html

The dependency resolution algorithm will try to make a consistent install plan that allows gitit to be run. However, in order to achieve that, it may decide that it's necessary to reinstall some existing packages in a new configuration (with other dependency or flag settings). Such reinstalls will then overwrite the previous package in the store, and if that previous package was depended on by something else, these other things will break.

--avoid-reinstalls 标志完全可以防止这种行为。

关于haskell - cabal install --avoid-reinstalls 到底做了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14242977/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com