我似乎对 cabal 中损坏的依赖关系图有很多问题,我终于尝试遵循 SO 建议转移到 cabal-dev,但由于类似的原因,它不会安装。
跳过原始安装尝试的许多页面,这是当前状态:
C:\Users\me>cabal --force-reinstalls install cabal-dev
Resolving dependencies...
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring network-2.3.1.0...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
configure: error: cannot find sources (include/HsNet.h) in /e/plang/Libraries/wx
Widgets2.9 or ..
cabal: Error: some packages failed to install:
HTTP-4000.2.5 depends on network-2.3.1.0 which failed to install.
cabal-dev-0.9.1 depends on network-2.3.1.0 which failed to install.
network-2.3.1.0 failed during the configure step. The exception was:
ExitFailure 1
我只是重新安装了网络(当前版本似乎是 2.4.0.1),但这并没有帮助。
有趣的是,尽管人们发现了各种不使用 cabal 的强声明,但许多 /most/ 教程和书籍都推荐它(默认情况下?)。