From: Ryan S. <rya...@us...> - 2008-07-30 09:02:11
|
I noticed that pure doesn't actually run on Mac OS X anymore because it can't find libpure. This occurs with pure 0.4 and also with the version of pure 0.5 in trunk @438. I tested on Mac OS X 10.4.11 and 10.5.4, both on Intel. Here is the error that occurs with 0.4: $ pure dyld: Library not loaded: libpure-0.4.dylib Referenced from: /mp/bin/pure Reason: image not found Trace/BPT trap $ And the reason looks to be that pure is linking with libpure without specifying the directory it's located in: $ otool -L /mp/bin/pure /mp/bin/pure: libpure-0.4.dylib (compatibility version 0.0.0, current version 0.0.0) /mp/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /mp/lib/libreadline.5.2.dylib (compatibility version 5.0.0, current version 5.2.0) /mp/lib/libgmp.3.dylib (compatibility version 8.0.0, current version 8.2.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.10) $ It works if I tell it where the libraries are when I run pure: $ DYLD_LIBRARY_PATH=/mp/lib pure Pure 0.4 (i386-apple-darwin8.11.1) Copyright (c) 2008 by Albert Graef This program is free software distributed under the GNU Public License (GPL V3 or later). Please see the COPYING file for details. Loaded prelude from /mp/lib/pure-0.4/prelude.pure. > quit $ But obviously you don't want users to have to give DYLD_LIBRARY_PATH every time they want to use pure. Finally, "libpure-0.5.dylib" is a peculiar name; I would have expected something more like "libpure.0.5.dylib". |