On Fri, 1 Feb 2002, Adrian Simmons wrote: > I've had similar problems with CUPS, which I'm playing with, > compiling myself, but against Fink libraries, and installing into the > Fink /sw hierarchy. > > Trying to start CUPS I get: > dyld: /sw/sbin/cupsd can't open library: libcups.2.dylib (No such > file or directory, errno = 2) > > I can fix it temporarily by doing: > setenv DYLD_LIBRARY_PATH "/sw/lib" > > Then I can start cupsd fine, but if I switch to another terminal, > logout or restart I loose it - I need to know how to make a permanent > fix. > > It seems to me this problem is similar - that dyld simply isn't > searching the /sw/lib folder for the library? > > Anyone care to comment? > >
This is caused by the fact that the linker didn't use "-install_name", or "-install_name" was set to the wrong path. If it had been linked with "-install_name /sw/lib/libcups.2.dylib" you wouldn't need to set DYLD_LIBRARY_PATH. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/CDC R/CDC1 Email : [EMAIL PROTECTED] 325 Broadway Web : www.cdc.noaa.gov/~jsw Boulder, CO, USA 80303-3328 Office : Skaggs Research Cntr 1D-124 _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
