
Hi, I am trying to install haskell-platform on OpenSuse 10.3, i586. I installed ghc 6.12.1 OK, then unpacked haskell-platform-2010.1.0.0.tar.gz, but "configure" gives me configure: error: The GLUT C library is required I have no particular interest in graphics programming and don't want to get involved in installing glut or freeglut as that is likely to cause more installation problems for all I know. I discovered this message and its reply suggesting looking in the bug tracker, http://www.haskell.org/pipermail/haskell-cafe/2009-December/070813.html http://www.haskell.org/pipermail/haskell-cafe/2009-December/070814.html but http://trac.haskell.org is down (I don't remember ever finding it up, in fact). Can anyone suggest a workaround? It's a bit of a showstopper if the main implementation of Haskell can't be installed without having non-free software :-(. Thanks David

On Thu, May 06, 2010 at 05:55:21PM +0100, David Carter wrote:
I am trying to install haskell-platform on OpenSuse 10.3, i586. I installed ghc 6.12.1 OK, then unpacked haskell-platform-2010.1.0.0.tar.gz, but "configure" gives me
configure: error: The GLUT C library is required
Probably you need to do is zypper in freeglut-devel -- ======================== Roger Whittaker roger@disruptive.org.uk http://disruptive.org.uk ========================

On 6 May 2010 18:07, Roger Whittaker
On Thu, May 06, 2010 at 05:55:21PM +0100, David Carter wrote:
I am trying to install haskell-platform on OpenSuse 10.3, i586. I installed ghc 6.12.1 OK, then unpacked haskell-platform-2010.1.0.0.tar.gz, but "configure" gives me
configure: error: The GLUT C library is required
Probably you need to do is
zypper in freeglut-devel
Thanks ... that went fine, and solved the immediate problem, but now I have another ?related error when I do "make": Configuring OpenGL-2.2.3.0... configure: WARNING: unrecognized options: --with-hc-pkg configure: error: cannot find sources (include/HsOpenGL.h.in) in /foo/bar/baz or .. Error: Configuring the OpenGL-2.2.3.0 package failed make: *** [build.stamp] Error 2 where /foo/bar/baz is the name a directory that occurs in my $PATH and nowhere else in my environment. I do have packages/OpenGL-2.2.3.0/include/HsOpenGL.h.in haskell-platform-2010.1.0.0, and in case it's relevant, the first directory in my $PATH is "." (though why it looks for an include file in my $PATH I can't imagine!). Any further suggestions most welcome. David

The haskell platform is a set of libraries that does include libraries to do OpenGL graphics. If you're not interested in graphics programming, and don't want to have those unused libraries on your system, then The Haskell Platform may not be what you need. "The main implementation of haskell", namely GHC, can be downloaded and installed independently, it comes with a minimal set of libraries. You can work from there to install only the libraries that you need, for that you'll need to download the packages from hackage and install them yourself, or start by either getting cabal-install if suze provides it, or compiling it. That's not so hard actually, I've done it quite often ( though on Kubuntu and Centos, not on Suze ) David.

On Friday 07 May 2010 12:39:59, David Virebayre wrote:
"The main implementation of haskell", namely GHC, can be downloaded and installed independently, it comes with a minimal set of libraries. You can work from there to install only the libraries that you need, for that you'll need to download the packages from hackage and install them yourself, or start by either getting cabal-install if suze provides it, or compiling it. That's not so hard actually, I've done it quite often ( though on Kubuntu and Centos, not on Suze )
I don't know whether there's an openSUSE package for cabal-install, but once ghc is installed, it's no problem to get that. 1. check which version of the Cabal library you have (ghc-pkg list | grep Cabal), should be 1.6.* for ghc-6.10.*, 1.8.* for ghc-6.12.* 2. go to http://hackage.haskell.org/package/cabal-install and find the appropriate version of cabal-install for your Cabal library (0.8.2 for Cabal-1.8, 0.6.4 for Cabal-1.6) 3. download the .tar.gz 4. unpack it 5. cd /path/to/cabal-install[-0.x.y] 6. chmod +x bootstrap.sh 7. ./bootstrap.sh 8. add ~/.cabal/bin to your PATH 9. cabal update 10. open ~/.cabal/config and choose your default preferences (library-profiling: True documentation: True are two things you'll probably want) 11. start hacking

On 7 May 2010 13:38, Daniel Fischer
On Friday 07 May 2010 12:39:59, David Virebayre wrote:
"The main implementation of haskell", namely GHC, can be downloaded and installed independently, it comes with a minimal set of libraries. You can work from there to install only the libraries that you need, for that you'll need to download the packages from hackage and install them yourself, or start by either getting cabal-install if suze provides it, or compiling it. That's not so hard actually, I've done it quite often ( though on Kubuntu and Centos, not on Suze )
I don't know whether there's an openSUSE package for cabal-install, but once ghc is installed, it's no problem to get that. 1. check which version of the Cabal library you have (ghc-pkg list | grep Cabal), should be 1.6.* for ghc-6.10.*, 1.8.* for ghc-6.12.* 2. go to http://hackage.haskell.org/package/cabal-install and find the appropriate version of cabal-install for your Cabal library (0.8.2 for Cabal-1.8, 0.6.4 for Cabal-1.6) 3. download the .tar.gz 4. unpack it 5. cd /path/to/cabal-install[-0.x.y] 6. chmod +x bootstrap.sh 7. ./bootstrap.sh 8. add ~/.cabal/bin to your PATH 9. cabal update 10. open ~/.cabal/config and choose your default preferences (library-profiling: True documentation: True are two things you'll probably want) 11. start hacking
Thanks, Daniel -- that worked for me (at least as far as 10 -- step 11 is another story for another day :-)). David

On Friday 07 May 2010 16:49:13 you wrote:
On 7 May 2010 13:38, Daniel Fischer
wrote:
8. add ~/.cabal/bin to your PATH
Just to prevent later trouble: If you use the tilde, **do not quote the PATH** (export PATH=~/.cabal/bin:$PATH works, export PATH="~/.cabal/bin:$PATH" doesn't, because the tilde doesn't get expanded inside quotes) If you use $HOME instead of the tilde or write out your home directory, it doesn't matter whether you enclose the PATH in quotes or not.
Thanks, Daniel -- that worked for me (at least as far as 10 -- step 11 is another story for another day :-)).
David
participants (4)
-
Daniel Fischer
-
David Carter
-
David Virebayre
-
Roger Whittaker