[Haskell-beginners] Re: Haskell OpenGL trouble

Heinrich Apfelmus apfelmus at quantentunnel.de
Sun Aug 2 03:45:06 EDT 2009

Matt f wrote:
> I am currently running Mac OS 10.5.7, and I have install many Haskell files,
> compiled a bouncing ball example, fixed the enableGUI bug, tried an IDE, and
> have started installing graphics libraries.
> I am using Cabal in the terminal to install what I need, though whenever I
> try to install opengl or a package of opengl; it comes up with an error.
> Macintosh-2:opengl matthew$ sudo cabal install
> Resolving dependencies...
> Configuring OpenGLRaw-
> cabal: Missing dependency on a foreign library:
> * Missing C library: GL
> This problem can usually be solved by installing the system package that
> provides this library (you may need the "-dev" version). If the library is
> already installed but in a non-standard location then you can use the flags
> --extra-include-dirs= and --extra-lib-dirs= to specify where it is.
> cabal: Error: some packages failed to install:
> GLURaw- depends on OpenGLRaw- which failed to install.
> OpenGL- depends on OpenGLRaw- which failed to install.
> OpenGLRaw- failed during the configure step. The exception was:
> exit: ExitFailure 1
> Macintosh-2:opengl matthew$
> It appears that I have zoned onto the bit that's causing all this mess, I'm
> missing a C library: GL.

OpenGL is installed on MacOS X by default; it looks like the .cabal file
is missing a

   -framework OpenGL

flag or similar.

Write an email to the package maintainer, listed on




More information about the Beginners mailing list