[Gtk-sharp-list] gtk-sharp os x, library not found

Jonathan Pryor jonpryor@vt.edu
Tue, 06 Jan 2004 19:35:21 -0500


OSX is not a front-end bound to BSD Unix.  OSX is a Mach micro-kernel
with a BSD subsystem attached.  If anything, BSD is a front-end to the
Mach kernel, but the normal Mach kernel exports are also present.

Furthermore, most Unixes (at present) use ELF for their binary format. 
(Unless they're still in the stone age with a.out, or using some COFF
format...)  OSX doesn't; it uses Mach-O.

In any event, LD_LIBRARY_PATH is not used.  What you want is:

	DYLD_LIBRARY_PATH

(note the leading "DY".)  See ``man dyld'' for more information.

 - Jon

On Tue, 2004-01-06 at 16:24, Seth Kurtzberg wrote:
> OSX is a front end bound to BSD UNIX, and as such uses LD_LIBRARY_PATH. 
>   LD_LIBRARY_PATH is not a Linux thing at all, but a UNIX thing adopted 
> by Linux.
> 
> On Jan 6, 2004, at 1:58 PM, Mike Kestner wrote:
> 
> > On Mon, 2004-01-05 at 15:42, Pierre Andrews wrote:
> >
> >> ** (button.exe:1459): WARNING **: Failed to load library
> >> ./libgtk-x11-2.0.dylib (libgtk-x11-2.0.dylib): dlcompat: file
> >> "./libgtk-x11-2.0.dylib" not found
> >>
> >> I you have followed everything, you see that I still have the same
> >> error. even if MONO_PATH is set to my libraries path:
> >> /sw/lib/:/usr/lib:/usr/local/lib
> >> (libgtk-x11-2.0.dylib being in /sw/lib)
> >
> > On linux the native lib access is controlled by LD_LIBRARY_PATH.  You
> > need the comparable variable on OS X.  MONO_PATH is only used for the
> > assemblies, not the native lib loading.
> > -- 
> > Mike Kestner <mkestner@speakeasy.net>
> >
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
> >
> -----------------------------------------------------------------
> Seth Kurtzberg
> CTO
> ISEC Research and Network Operations Center
> 480-314-1540
> 888-879-5206
> seth@isec.us
> -----------------------------------------------------------------
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list