[Haskell-cafe] Installation of GLUT package
ronguida at mindspring.com
Mon Sep 3 21:06:39 EDT 2007
About a month ago, I asked about how to install freeglut and get GHC
to recognize it. I was side-tracked; I finally decided to try to get
it working, and I'm just stuck.
I have GHC 6.6.1 and freeglut 2.4.0. Freeglut successfully compiled
"out of the box" in MS Visual Studio.Net 2003 on my Windows XP box.
GHC won't recognize freeglut; I found out that I need to recompile the
GLUT package to get things working.
Today I downloaded the GLUT package from hackage.haskell.org and
attempted to install it. The installation blows up.
According to Cabal/How_to_install_a_Cabal_package, I need to download
the package, unzip it, and then run the following three commands.
1. runghc Setup.hs configure
2. runghc Setup.hs build
3. runghc Setup.hs install
The first command, "runghc Setup.hs configure", fails, reporting that
it can't find "sh". Naturally, I'm on a Windows box, so I don't have
the Unix shell on my system.
So now I'm stuck...
* Is there an easy way to work around the absence of "sh"?
* Is there an easy way to get "sh" on my Windows box?
* <joke> GHC was available pre-compiled for Windows. Is there an easy
way to get someone else to compile the GLUT package for me? :-) </joke>
* Is it feasible to walk past a cut and "upgrade" to Linux? Most
Windows programs can be replaced by open-source equivalents, but my
sticky issue is that there's no Linux version of iTunes.
PS, Here's the output of configure. Do I really need all this stuff
just for the GLUT package?
C:\GLUT\GLUT-2.0>runghc Setup.hs configure
configure: Dependency base-any: using base-2.1.1
configure: Dependency OpenGL-any: using OpenGL-2.2.1
configure: Using install prefix: C:\Program Files
configure: Binaries installed in: C:\Program Files\Haskell\bin
configure: Libraries installed in: C:\Program
configure: Private binaries installed in: C:\Program Files\GLUT-2.0
configure: Data files installed in: C:\Program Files\Common Files\GLUT-2.0
configure: Using compiler: C:\ghc\ghc-6.6.1\bin\ghc.exe
configure: Compiler flavor: GHC
configure: Compiler version: 6.6.1
configure: Using package tool: C:\ghc\ghc-6.6.1\bin\ghc-pkg.exe
configure: Using ar found on system at: C:\ghc\ghc-6.6.1\bin\ar.exe
configure: No haddock found
configure: No pfesetup found
configure: No ranlib found
configure: Using runghc found on system at: C:\ghc\ghc-6.6.1\bin\runghc.exe
configure: No runhugs found
configure: No happy found
configure: No alex found
configure: Using hsc2hs: C:\ghc\ghc-6.6.1\bin\hsc2hs.exe
configure: No c2hs found
configure: No cpphs found
configure: No greencard found
Setup.hs: Cannot find: sh
More information about the Haskell-Cafe