[Haskell-cafe] Installing HOpenGL

Thomas Schilling nominolo at googlemail.com
Sun Jun 24 18:40:50 EDT 2007

On 25 jun 2007, at 00.18, Jimmy Miller wrote:

> I've installed ghc 6.6.1, but when I try to compile and OGL program  
> like this:
> ghc -package GLUT ogl.hs
> I get the error:
> Failed to load interface for `GLUT':
>      Use -v to see a list of the files searched for.
> I tried running -v, but it doesn't tell me anything useful.

Can you post the output of "ghc-pkg list"?  If that doesn't list  
GLUT, then it is not installed (or not correctly).  If it is  
installed, you can try

   ghc --make ogl.hs

That usually takes care of all the required packages (so can avoid a  
lot of fiddling around).

/ Thomas

More information about the Haskell-Cafe mailing list