Reputation: 27180
I am trying to install the OpenGL-2.4.0.2 package manually, but after I download the tarball from Hackage and decompressed it, when I ran
sudo runhaskell Setup.hs configure
I get these:
Configuring OpenGL-2.4.0.2...
Setup.hs: At least the following dependencies are missing:
GLURaw >=1.1.0.0,
ObjectName -any,
OpenGLRaw >=1.1.0.0,
StateVar -any,
Tensor -any
But I've checked that I've already installed these:
GLURaw 1.1.0.1
ObjectName 1.0.0.0
OpenGLRaw 1.1.0.2
StateVar 1.0.0.0
Tensor 1.0.0.1
And I've tried reinstall these but no avail.
I use GHC 7.2.1, cabal-install 0.8.0 with Cabal 1.8.0.2, under Ubuntu 11.04.
Thanks for any suggestions!
Upvotes: 0
Views: 506
Reputation: 183858
If you installed the dependencies using cabal-install (the cabal
command line programme), they are by default installed in the user package-db. But when you install a package using the runhaskell ./Setup.hs
way, it does global installs by default and therefore cannot use packages from the user-db. Try installing the package in the user-db,
runhaskell ./Setup.hs configure --user
or reinstall the dependencies in the global db, cabal install --global foo
.
Upvotes: 2