From: James B. <jk...@mr...> - 2002-02-15 09:55:31
|
On Thu, Feb 14, 2002 at 06:26:21PM -0800, Daniel Lopez wrote: > daniel% /Users/daniel/install2/bin/tclsh8.4 > dyld: /Users/daniel/install2/bin/tclsh8.4 can't open library: > libtcl8.4.dylib (No such file or directory, errno = 2) > > This is a pretty basic question, but this is my first experience with Mac OS > X (and I am not even at the machine, but ssh'ing remotely into it :) and I > have no clue on how to add that directory to my library path. > I tried LD_LIBRARY_PATH and other Linux/Unix tricks but that does not seem > to work. MacOS X uses DYLD_LIBRARY_PATH. Hoever even with that it doesn't work for me. Look in unix/tclLoadDyld.c and you'll find this: dyld_return = NSAddLibrary(native); Looking at the docs it seems that NSAddLibraryWithSearching(native) (IIRC) should then search DYLD_LIBRARY_PATH, but changing that _still_ didn't work for me. In the end I had to manually implement it myself in tcl before calling load. Note that there also seems to be a bug in MacOS X where if "native" is a file that does not exist then instead of returning a failure (as the docs state) the process simply exits! Wonderful... James -- James Bonfield (jk...@mr...) Fax: (+44) 01223 213556 Medical Research Council - Laboratory of Molecular Biology, Hills Road, Cambridge, CB2 2QH, England. Also see Staden Package WWW site at http://www.mrc-lmb.cam.ac.uk/pubseq/ |