[Haskell-cafe] glut installation using cabal failed
Henk-Jan van Tuyl
hjgtuyl at chello.nl
Fri Apr 17 10:46:17 EDT 2009
On Thu, 16 Apr 2009 09:44:44 +0200, Duncan Coutts
<duncan.coutts at worc.ox.ac.uk> wrote:
> 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 <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 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/
--
More information about the Haskell-Cafe
mailing list