[Haskell-cafe] Re: Installing Haskell on OSX

Giuseppe Luigi Punzi Ruiz glpunzi at lordzealon.com
Tue Jun 22 18:25:45 EDT 2010


I uninstalled all ports and macports, to try with gtk-osx

Once I did all of this, leksah builds, but leksah-server don't, with  
problems with version of libgthread2.

I'm at "jhbuild build meta-gtk-osx-bootstrap" step of GTK-OSX.

Once the next step ("jhbuild build meta-gtk-osx-core") is finished,  
and all is fine (and really I hope it), there are some consideration,  
before directly reinstall cabal gtk packages, and reinstall leksah? I  
ask because it sais thath jhbuild is needed to build gtk apps.

Cheers.

Note: Somebody wants a Macbook? I sell mine :P

El 22/06/2010, a las 3:36, Hamish Mackenzie escribió:

> 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

Giuseppe Luigi Punzi Ruiz
Blog: http://www.lordzealon.com
Twitter & Skype & GoogleTalk accounts: glpunzi







More information about the Haskell-Cafe mailing list