Reputation: 4609
I seem to have so many problems with broken dependency graphs in cabal, that I am finally trying to follow SO advice to move to cabal-dev, but for similar reasons it won't install.
Skipping the many pages of the original install attempts, here is the current status:
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
I did just re-install network (current version seems to be 2.4.0.1), but that did not help.
It is also interesting that although one finds various strong declarations NOT to use cabal, many /most/ tutorials and books recommend it (by default?).
Upvotes: 3
Views: 493
Reputation: 13677
It's not a good idea to ever install different versions of packages coming with Platform.
In this case you are trying to reinstall network
. You should do the following: run ghc-pkg list network
. If you have more than one version installed use ghc-pkg unregister
to unregister all but the oldest version.
Then perform cabal install cabal-dev network-2.3.0.13
or whatever version was shipped with latest platform.
Upvotes: 2