That altered the error message, see below...
On Thu, November 17, 2005 17:01, Axel Simon said:
> On Thu, 2005-11-17 at 16:42 +0000, Chris Kuklewicz wrote:
>> I am trying to install and run gtk2hs on Mac OS X 10.4.3 (w/XCode 2.=
>> aka gcc 4.0.1). I have been using GHC 6.4.1 quite successfully, but I
>> am having problems getting gtk2hs to run.
>> I tried the 0.9.10 release, which failed in the same style as the repo=
>> below. Now I am using gtk2hs from today's darcs and darwin ports
>> ghc-6.4.1, gtk , and autoconf packages:
>> Prelude> :load CairoDrawing.hs
>> Compiling Main ( CairoDrawing.hs, interpreted )
>> Ok, modules loaded: Main.
>> *Main> :t run
>> run :: Render () -> IO ()
>> *Main> run (return ())
>> Loading package mtl-1.0 ... linking ... done.
>> Loading package haskell98-1.0 ... linking ... done.
>> Loading package glib-0.9.10.1 ... linking ... done.
>> Loading package cairo-0.9.10.1 ... linking ... done.
>> Loading package gtk-0.9.10.1 ... can't load .so/.DLL for: png12
>> (dlopen(libpng12.dylib, 10): image not found)
>> Does anyone know what causes this dynamic linking error?
> Well, this says that you don't have libpng12.dylib on your computer
> which should be installed, since gtk depends on it. Did you install Gtk=
> into a non-standard location (e.g. /sw/, the fink default?). If so, you
> might not have your DYLD_LIBRARY_PATH set to the location where
> libpng12.dylib lives. (However, it is odd that Gtk is found, but libpng
> not). Can you find libpng12.dylib anywhere on your machine?
It is part of the darwin port installation, so I pointed DYLD_LIBRARY_PAT=
to it and got a different error:
Reason:/tmp/test chrisk$ ls /opt/local/lib/*png*
Reason:/tmp/test chrisk$ DYLD_LIBRARY_PATH=3D/opt/local/lib ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.4.1, for Haskell 98=
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base-1.0 ... linking ... done.
Compiling Main ( CairoDrawing.hs, interpreted )
Ok, modules loaded: Main.
*Main> run (return ())
Loading package mtl-1.0 ... linking ... done.
Loading package haskell98-1.0 ... linking ... done.
Loading package glib-0.9.10.1 ... linking ... done.
Loading package cairo-0.9.10.1 ... linking ... done.
Loading package gtk-0.9.10.1 ... linking ... done.
*** Exception: Cannot initialize GUI.
The gtk2hs was pulled with darcs and autoreconf, ./configure
--prefix=3D/opt/local, make, make install were run.
Versions of everything from darwin ports:
The following ports are currently installed:
alex 2.0.1_0 (active)
atk 1.10.3_0 (active)
audiofile 0.2.6_0 (active)
autoconf 2.59_0 (active)
automake 1.9.6_0 (active)
cairo 1.0.2_0 (active)
cups-headers 1.1.15_0 (active)
docbook-xml-scrollkeeper 4.2_0 (active)
docbook-xsl 1.69.1_0 (active)
esound 0.2.35_1 (active)
expat 1.95.8_1 (active)
fontconfig 2.3.2_0 (active)
freetype 2.1.9_1 (active)
gconf 2.12.0_0 (active)
gettext 0.14.5_0 (active)
ghc 6.4.1_0+darwin_8 (active)
glade 2.10.0_0 (active)
glib2 2.8.3_0 (active)
gmp 4.1.4_2+test (active)
gnome-keyring 0.4.4_0 (active)
gnome-mime-data 2.4.2_0 (active)
gnome-vfs 188.8.131.52_0 (active)
gnuregex 0.12_2 (active)
gtk2 2.8.4_0+darwin_8 (active)
happy 1.15_0 (active)
hugs98-devel Mar2005-patched_0 (active)
intltool 0.34.1_0 (active)
jpeg 6b_1 (active)
libart_lgpl 2.3.17_0 (active)
libbonobo 2.10.1_0 (active)
libbonoboui 2.10.1_0 (active)
libglade2 2.5.1_1 (active)
libgnome 184.108.40.206_0 (active)
libgnomecanvas 2.12.0_0 (active)
libgnomecups 0.2.2_0 (active)
libgnomeui 2.12.0_0 (active)
libiconv 1.10_1+darwin_8 (active)
libidl 0.8.6_0 (active)
libpixman 0.1.5_0 (active)
libpng 1.2.8_2+darwin_8 (active)
libtool 1.5.20_0 (active)
libxml2 2.6.22_0 (active)
libxslt 1.1.15_0 (active)
orbit2 2.12.4_0 (active)
p5-xml-parser 2.34_3 (active)
pango 1.10.1_0 (active)
perl5.8 5.8.7_0 (active)
pkgconfig 0.20_0 (active)
popt 1.7_4 (active)
readline 5.0.005_0+darwin_8 (active)
render 0.9_0 (active)
scrollkeeper 0.3.14_0 (active)
tiff 3.7.4_0 (active)
Xft2 2.1.7_0 (active)
xrender 0.9.0_0 (active)
zlib 1.2.3_0 (active)
[ Some fink things are also installed, but they are NOT in the PATH of
anything and should be invisible to the darwin port packages ]