[Haskell-beginners] Trouble in installing Packages

Daniel Fischer daniel.is.fischer at web.de
Sun Sep 5 10:57:17 EDT 2010

On Sunday 05 September 2010 16:05:27, Lorenzo Isella wrote:
> Dear All,
> I am quite new to Haskell and have only very recently found out about
> cabal. I am interested in some haskell packages for scientific
> applications, but I am experiencing some problems in installing them on
> my machine (ubuntu 10.04, amd64 architecture).
> For instance, I pasted below the output of my attempts to install
> hmatrix-static.
> Any idea about how to fix this?
> Cheers
> Lorenzo

hmatrix-static hasn't been brought up to ghc-6.12. I think array- 
doesn't build with 6.12, since some of the low-level IO stuff has been 
changed. The allowed versions of haskell-src-meta and hmatrix seem also not 
to work with 6.12.

What might work is
$ cabal install hmatrix
(will probably install hmatrix-
$ cabal unpack hmatrix-static
$ cd hmatrix-static-0.3
open the .cabal file in your favourite editor, change the build-depends 
from array==0.2.* to array >= 0.3 && < 0.4, from haskell-src-
meta>=<0.0.7 to haskell-src-meta >= 0.1 && < 0.2 and from 
hmatrix==0.7* to hmatrix >= 0.9 && < 0.10, change the version of hmatrix-
static to, save the changed .cabal file and then
$ cabal install
(no arguments)

Or try to get the maintainer to do the work to get it to build with 6.12.

More information about the Beginners mailing list