在Ubuntu 13.04上从源代码安装Haskell平台:找不到OpenGL

我正在尝试使用以下说明在一个相当新的Ubuntu 13.04上安装Haskell Platform 2013.2.0.0: 如何为Ubuntu 13.04安装Haskell平台?

我已经安装了评论中提到的额外软件包,但是configure步骤会生成与找不到OpenGL相关的错误。 这里是:

 > ./configure # Omitting some output # ... checking for zlibVersion in -lz... yes checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking for library containing glEnd... no configure: error: The OpenGL C library is required 

奇怪的是,它可以找到OpenGL头,但它找不到glEnd 。 什么可能导致这个?

安装以下内容:

 sudo apt-get install libgl1-mesa-dev sudo apt-get install libglc-dev sudo apt-get install freeglut3-dev sudo apt-get install libedit-dev sudo apt-get install libglw1-mesa libglw1-mesa-dev 

然后

 ./configure #now build sudo make install cabal update 

来源: http : //nathanwiegand.com/blog/2009/07/haskell-platform-on-ubuntu.html