
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". Here is my `ghc-pkg list` -------------------------------------------------------------------------------- D:\ghc\ghc-6.10.2>ghc-pkg list d:/ghc/ghc-6.10.2\package.conf: Cabal-1.6.0.3, GLFW-0.3, HUnit-1.2.0.3, OpenGL-2.2.1.1, QuickCheck-1.2.0.0, Win32-2.2.0.0, array-0.2.0.0, base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4, containers-0.2.0.1, directory-1.0.0.3, (dph-base-0.3), (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3), (dph-seq-0.3), filepath-1.1.0.2, (ghc-6.10.2), ghc-paths-0.1.0.5, ghc-prim-0.1.0.0, haddock-2.4.2, haskell-src-1.0.1.3, haskell98-1.0.1.0, hpc-0.5.0.3, html-1.0.1.2, integer-0.1.0.1, mtl-1.1.0.2, network-2.2.1, old-locale-1.0.0.1, old-time-1.0.0.2, packedstring-0.1.0.1, parallel-1.1.0.1, parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1, regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3, rts-1.0, stm-2.1.1.2, syb-0.1.0.1, template-haskell-2.3.0.1, xhtml-3000.2.0.1 -------------------------------------------------------------------------------- I am on windows XP using ghc-6.10.2 Please advice, regards, raja

On Tue, 14 Apr 2009 08:25:52 +0200, Raja Koduru
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/ --

On Wed, 2009-04-15 at 01:53 +0200, Henk-Jan van Tuyl wrote:
On Tue, 14 Apr 2009 08:25:52 +0200, Raja Koduru
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 GLUT/glut.h... no configure: error: no GLUT header found, so this package cannot be built See `config.log' for more details.
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.
Hmm, that is annoying. I've filed a tracker bug here: http://trac.haskell.org/haskell-platform/ticket/11 and also noted the issue here: http://hackage.haskell.org/trac/hackage/ticket/458#comment:2 Duncan

On Thu, 16 Apr 2009 09:44:44 +0200, Duncan Coutts
On Wed, 2009-04-15 at 01:53 +0200, Henk-Jan van Tuyl wrote:
On Tue, 14 Apr 2009 08:25:52 +0200, Raja Koduru
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 GLUT/glut.h... no configure: error: no GLUT header found, so this package cannot be built See `config.log' for more details.
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.
Hmm, that is annoying.
I've filed a tracker bug here: http://trac.haskell.org/haskell-platform/ticket/11
and also noted the issue here: http://hackage.haskell.org/trac/hackage/ticket/458#comment:2
Duncan
I am not absolutely sure, that you need to set these environment vars in this case, but I needed it for most packages with headers and external libs; this is what Raja wrote to me:
Thank you. Actually I have already set C_INCLUDE_PATH environment variable with the right set of directories. Even after that error trace was occurring. I was suggested that I launch cabal from msys instead of launching via window's cmd.exe. That worked. I have no explanation for that behavior. regards, raja
-- Regards, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ --
participants (3)
-
Duncan Coutts
-
Henk-Jan van Tuyl
-
Raja Koduru