Haskell Cannot find gtk2hsChs

79 views Asked by At

Has anyone run into problems with gtk2hsChs installing glib with GHC on linux (OpenSuse) and know of a workaround?

Here is the scenario: I have cabal installed gtk2hs-buildtools, and gtk2hsChs is in the path (e.g. which gtk2hsC2hs works).

However, I cannot install this library. The program builds fine, but fails to install. If I

cabal unpack glib
cd glib
cabal configure
cabal build

Everything works just fine. But

cabal install 
and
cabal install --global

fail.

Cannot find gtk2hsC2hs
Please install `gtk2hs-buildtools` first and check that the install directory is in     
your PATH (e.g. HOME/.cabal/bin).

Cabal-install doesn't have an option (as per --help) to change the location of gtk2hsC2hs, but

runhaskell Setup configure

does. However,

runhaskell Setup configure --with-gtk2hsC2hs=/usr/local/bin/gtk2hsC2hs
runhaskell Setup build
sudo runhaskell Setup install 

fails on the last step with the same error message as with cabal install.

The weird thing is this: If I change the location of the gtk2hsC2hs program manually in Gtk2HsSetup.hs, and run

cabal configure
or
runhaskell Setup configure

I get a different error message: setup: "Unknown build tool gtk2hsC2hs" I can't find this string in any of the setup files, so it is being generated elsewhere. Perhaps this indicates the problem.. perhaps a version mismatch.. perhaps something else silly I am missing?

0

There are 0 answers