可能重复:
Cabal 在需要分析库时没有安装依赖项?
这是情况。我想用一些新的选项或标志安装\重新安装包A(例如我添加library-profiling: True
了 in ~/.cabal/config
)。
cabal install --reinstall A
包A依赖于包B,它在不支持该选项的情况下安装。这就是为什么(如果我理解正确的话)告诉我:
Could not find module `B':
Perhaps you haven't installed the profiling libraries for package `B'?
Use -v to see a list of the files searched for.
所以我需要重新安装包B然后尝试安装包A:
cabal install --reinstall B
cabal install --reinstall A
我只想告诉 cabal 我需要自动重新安装所有依赖于A 的软件包。我怎样才能做到这一点?