[Haskell-beginners] Haskell OpenGL trouble

Matt f gandolfmatt at gmail.com
Sat Aug 1 22:02:54 EDT 2009

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.
Unfortunately after googling a while I have found no answer.

Am I doing something wrong? Is there another way? Could there be a fix?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090801/f025e7bd/attachment-0001.html

More information about the Beginners mailing list