haskell-platform configures failed on Ubuntu 11.04

I tried to build the newest haskell-platform-2011.2.01 from source on Ubuntu 11.04, following the instructions http://www.vex.net/~trebla/haskell/haskell-platform.xhtml. But there was still an configure error. $ ./configure ************************************************** * * Haskell Platform Source Installer * * For the Haskell Platform 2011.2.0.1 and GHC 7.0.3 * ************************************************** checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for ghc... /usr/local/bin/ghc checking for ghc-pkg... /usr/local/bin/ghc-pkg checking for hsc2hs... /usr/local/bin/hsc2hs checking version of ghc... 7.0.3 checking version of ghc-pkg matches... yes checking ghc actually works... [1 of 1] Compiling Main ( conftest.hs, conftest.o ) yes checking the ghc core packages are all installed... yes checking for perl... /usr/bin/perl checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes 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 In fact, glEnd function did exist in /usr/include/GL/gl.h I googled this issue, only found this one is similar to mine, but my system is Ubuntu not Opensus http://haskell.1045720.n5.nabble.com/Haskell-Platform-can-t-use-OpenGL-on-Op... The following are the libraries I already installed 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 Can anyone suggest the libraries my OS missing ?

On 11-07-22 02:26 PM, David Smith wrote:
I tried to build the newest haskell-platform-2011.2.01 from source on Ubuntu 11.04, following the instructions http://www.vex.net/~trebla/haskell/haskell-platform.xhtml. But there was still an configure error. [...] checking for library containing glEnd... no configure: error: The OpenGL C library is required [...] The following are the libraries I already installed
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
I just tested again in a fairly clean Ubuntu 11.04 (Desktop) installation plus the concerned *-dev packages (first just those in my instructions, then plus your extra ones) plus ghc 7.0.3. I cannot reproduce the error. The configure script figured out checking for library containing glEnd... -lGL just fine. There was no error.

On 22/07/2011 19:26, David Smith wrote:
I tried to build the newest haskell-platform-2011.2.01 from source on Ubuntu 11.04, following the instructions http://www.vex.net/~trebla/haskell/haskell-platform.xhtml. But there was still an configure error.
You probably want to take this over to haskell-platform@haskell.org. Cheers, Simon
participants (3)
-
Albert Y. C. Lai
-
David Smith
-
Simon Marlow