[Haskell-beginners] cabal install errors & issues
guthrie at mum.edu
Thu Aug 16 15:18:31 CEST 2012
Thanks for the advice and pointers, I will try to make this transition, but it looks like it is not so simple.
Trying to bootstrap into cabal-dev seems to require some external installations as well;
>>cabal install cabal-dev --force-reinstalls
cabal: The package has a './configure' script. This requires a Unix
compatibility toolchain such as MinGW+MSYS or Cygwin.
cabal: Error: some packages failed to install:
HTTP-4000.2.3 depends on network-220.127.116.11 which failed to install.
cabal-dev-0.9.1 depends on network-18.104.22.168 which failed to install.
network-22.214.171.124 failed during the configure step. The exception was:
I do have MinGW+MSYS installed, might be a PATH issue, I'll check further.
I don't understand the details of Haskell package management, and the implications of this description of cabal-dev:
For installed packages, the sandboxing means that packages are not registered into the user or global ghc package database.
The global package db is used, so it is recommended that the global package db is only used for the ghc core libraries.
This approach conflicts with using distribution packages for non-core libraries, because they are installed into the global db.
It seems odd to me to say that "they are not registered.." into either database, and then say the global package db is used. Is there some distinction here between a "global ghc package db" & a "global package db"?.
Cabal install hsenv shows "no such package", and I'm not sure why using it with installs would be good.
Already removing shadowing packages is breaking things, so more cleanup will also be needed for that.
I am trying to convert some SML classes and labs for my students to Haskell, and all of this overhead is certainly something that I couldn't wish on them! Perhaps if I have them all start with cabal-dev none of this would happen?
> > Please see this:
> >> http://ivanmiljenovic.wordpress.com/2010/03/15/repeat-after-me-cabal-
> >> is-not-a-package-manager/
> > thanks Benjamin, for the cabal-dev, hsenv tip though.
More information about the Beginners