[Haskell-cafe] Re: Installing Haskell on OSX

Hamish Mackenzie hamish.k.mackenzie at googlemail.com
Mon Jun 21 21:36:59 EDT 2010


On 22 Jun 2010, at 08:01, Giuseppe Luigi Punzi Ruiz wrote:

> uhmm..
> 
> Now, with all gtk2 rebuilded with +no_x11 and +quartz I get
> 
> Linking dist/build/leksah/leksah ...
> ld: library not found for -lgtk-x11-2.0
> collect2: ld returned 1 exit status
> cabal: Error: some packages failed to install:
> leksah-0.8.0.6 failed during the building phase. The exception was:
> ExitFailure 1
> 
> I searched, and it suppose libgtk-x11-2.0 is part of GTK2, but I only can found it in darwinports inside xulrunner package, but fails me a lot building.
> 
> Some idea?

I think something must still have been built against gtk x11.

Did you rebuild all of Gtk2Hs after rebuilding Gtk?
cabal install --reinstall glib
cabal install --reinstall gio
cabal install --reinstall cairo
cabal install --reinstall pango
cabal install --reinstall gtk
cabal install --reinstall gtksourceview

If that does not fix it, you could try this to find the package at fault.
grep gtk-x11 ~/.ghc/i386-darwin-6.12.1/package.conf.d/*

I am interested to see how you get on with MacPorts.  I have not tried it myself in a while.  I built the current Leksah OS X binary with jhbuild...
http://sourceforge.net/apps/trac/gtk-osx/wiki/Build

I am sorry that the current binary is not compatible with OS X 10.5.  I will try to use OS X 10.5 to build the next release to make sure it is compatible.

Once you have Leksah working you will probably need to update the keymap file (~/.cabal/share/leksah-0.8.0.6/data/keymap.lkshk) if you want Command-C, V and X to work.  Just uncomment the three lines already in there...
<ctrl>x     ->          EditCut
<ctrl>c     ->          EditCopy
<ctrl>v     ->          EditPaste
You will probably find it beeps each time you use them.  I have a nice fix for that but I think it requires a newer version of ige-mac-integration than the one in MacPorts.

Good Luck,
Hamish


More information about the Haskell-Cafe mailing list