[Haskell-cafe] installing GSL packages on Windows

Sean Matthews seanmatthews1 at gmail.com
Wed Oct 28 22:41:11 UTC 2015


I'm  currently  trying to  install  the  gsl packages  (in  particular
hmatrix-gsl) for a Windows 7/32 system.

I've been using a fairly stripped down version of the GHC for a while,
but now that I'm trying to install packages like this, I'm running
into problems.

Anyway, I have installed pkg-config, etc. and I believe I've got the
various bits of gsl installed.  However cabal is still failing at
attaching this to the appropriate haskell modules, at what looks to be
very near the end, and suggstions for what I can try to get things to
finish would be welcome.  Below is the output as generated by cabal
(this is the result of several iterations and systematic googling, but
google seems to have run out on me).

All suggestions, advice, etc. very welcome,

Sean Matthews

> cabal install hmatrix-gsl --extra-include-dirs="C:\Users\sematthews\My
Software\gsl-1.15-dev-win32\include"
--extra-lib-dirs="C:\Users\sematthews\My Software\gsl-1.15-dev-win32\lib"
> cabal install hmatrix-gsl --extra-include-dirs="C:\Users\sematthews\My
Software\gsl-1.15-dev-win32\include"
--extra-lib-dirs="C:\Users\sematthews\My Software\gsl-1.15-dev-win32\lib"
> Resolving dependencies...
> Configuring hmatrix-gsl-0.17.0.0...
> Building hmatrix-gsl-0.17.0.0...
> Failed to install hmatrix-gsl-0.17.0.0
> Build log (
C:\Users\sematthews\AppData\Roaming\cabal\logs\hmatrix-gsl-0.17.0.0.log ):
> Building hmatrix-gsl-0.17.0.0...
> Preprocessing library hmatrix-gsl-0.17.0.0...
> [ 1 of 17] Compiling Graphics.Plot    ( src\Graphics\Plot.hs,
dist\build\Graphics\Plot.o )
> [ 2 of 17] Compiling Numeric.GSL.Internal ( src\Numeric\GSL\Internal.hs,
dist\build\Numeric\GSL\Internal.o )
> [ 3 of 17] Compiling Numeric.GSL.Integration (
src\Numeric\GSL\Integration.hs, dist\build\Numeric\GSL\Integration.o )
> [ 4 of 17] Compiling Numeric.GSL.Fourier ( src\Numeric\GSL\Fourier.hs,
dist\build\Numeric\GSL\Fourier.o )
> [ 5 of 17] Compiling Numeric.GSL.Polynomials (
src\Numeric\GSL\Polynomials.hs, dist\build\Numeric\GSL\Polynomials.o )
> [ 6 of 17] Compiling Numeric.GSL.Minimization (
src\Numeric\GSL\Minimization.hs, dist\build\Numeric\GSL\Minimization.o )
> [ 7 of 17] Compiling Numeric.GSL.Root ( src\Numeric\GSL\Root.hs,
dist\build\Numeric\GSL\Root.o )
> [ 8 of 17] Compiling Numeric.GSL.Fitting ( src\Numeric\GSL\Fitting.hs,
dist\build\Numeric\GSL\Fitting.o )
> [ 9 of 17] Compiling Numeric.GSL.ODE  ( src\Numeric\GSL\ODE.hs,
dist\build\Numeric\GSL\ODE.o )
> [10 of 17] Compiling Numeric.GSL.Interpolation (
src\Numeric\GSL\Interpolation.hs, dist\build\Numeric\GSL\Interpolation.o )
> [11 of 17] Compiling Numeric.GSL.LinearAlgebra (
src\Numeric\GSL\LinearAlgebra.hs, dist\build\Numeric\GSL\LinearAlgebra.o )
> [12 of 17] Compiling Numeric.GSL.SimulatedAnnealing (
src\Numeric\GSL\SimulatedAnnealing.hs,
dist\build\Numeric\GSL\SimulatedAnnealing.o )
> [13 of 17] Compiling Numeric.GSL.Vector ( src\Numeric\GSL\Vector.hs,
dist\build\Numeric\GSL\Vector.o )
> [14 of 17] Compiling Numeric.GSL.IO   ( src\Numeric\GSL\IO.hs,
dist\build\Numeric\GSL\IO.o )
> [15 of 17] Compiling Numeric.GSL.Random ( src\Numeric\GSL\Random.hs,
dist\build\Numeric\GSL\Random.o )
> [16 of 17] Compiling Numeric.GSL.Differentiation (
src\Numeric\GSL\Differentiation.hs,
dist\build\Numeric\GSL\Differentiation.o )
> [17 of 17] Compiling Numeric.GSL      ( src\Numeric\GSL.hs,
dist\build\Numeric\GSL.o )
> In-place registering hmatrix-gsl-0.17.0.0...
> setup-Simple-Cabal-1.22.4.0-i386-windows-ghc-7.10.2.exe:
> 'C:\Users\sematthews\My Software\Haskell\bin\ghc-pkg.exe' exited with an
> error:
> hmatrix-gsl-0.17.0.0: Warning: haddock-interfaces:
>
C:\Users\SEMATT~1\AppData\Local\Temp\cabal-tmp-8196\hmatrix-gsl-0.17.0.0\dist\doc\html\hmatrix-gsl\hmatrix-gsl.haddock
> doesn't exist or isn't a file
> hmatrix-gsl-0.17.0.0: Warning: haddock-html:
>
C:\Users\SEMATT~1\AppData\Local\Temp\cabal-tmp-8196\hmatrix-gsl-0.17.0.0\dist\doc\html\hmatrix-gsl
> doesn't exist or isn't a directory
> hmatrix-gsl-0.17.0.0: library-dirs: /usr/local/lib is a relative path
which
> makes no sense (as there is nothing for it to be relative to). You can
make
> paths relative to the package database itself by using ${pkgroot}. (use
> --force to override)
> hmatrix-gsl-0.17.0.0: include-dirs: /usr/local/include is a relative path
> which makes no sense (as there is nothing for it to be relative to). You
can
> make paths relative to the package database itself by using ${pkgroot}.
(use
> --force to override)
> cabal: Error: some packages failed to install:
> hmatrix-gsl-0.17.0.0 failed during the building phase. The exception was:
> ExitFailure 1


-- 
Sean Matthews
seanmatthews1 at gmail.com / +49 1515 800 1901
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20151028/ce24fc2e/attachment-0001.html>


More information about the Haskell-Cafe mailing list