[Haskell-cafe] glut installation using cabal failed

Henk-Jan van Tuyl hjgtuyl at chello.nl
Tue Apr 14 19:53:34 EDT 2009


On Tue, 14 Apr 2009 08:25:52 +0200, Raja Koduru <kscraja at gmail.com> wrote:

> hi,
>
> I am a beginner to haskell.
>
> I am trying to install glut using "cabal install glut"
> Pasting here a tail of the output
> ---------------------------------------------------------------------
> checking for unistd.h... yes
> checking windows.h usability... yes
> checking windows.h presence... yes
> checking for windows.h... yes
> checking GL/glut.h usability... no
> checking GL/glut.h presence... no
> checking for GL/glut.h... no
> checking for GLUT library... no
> checking for GL/glut.h... (cached) no
> checking GLUT/glut.h usability... no
> checking GLUT/glut.h presence... no
> checking for GLUT/glut.h... no
> configure: error: no GLUT header found, so this package cannot be built
> See `config.log' for more details.
> cabal: Error: some packages failed to install:
> GLUT-2.1.1.2 failed during the configure step. The exception was:
> exit: ExitFailure 1
> ---------------------------------------------------------------------------------
>
> But I do have "glut.h" in my "D:\ghc\ghc-6.10.2\include\mingw\GL".
>

Define the environment variable:
   C_INCLUDE_PATH=D:\ghc\ghc-6.10.2\include\mingw
(you can add more directories, separate them by ';')
To let the linker find the libraries, define LIBRARY_PATH.

-- 
Regards,
Henk-Jan van Tuyl


--
http://functor.bamikanarie.com
http://Van.Tuyl.eu/
--




More information about the Haskell-Cafe mailing list