On Thursday, January 2, 2003, at 06:59 PM, [EMAIL PROTECTED] wrote:
Whenever I try to run a gdal program, I always get this error: dyld: gdal_translate can't open library: ./libgdal.1.1.dylib (No such file or directory, errno = 2)This means the install_name of the library is wrong:
% otool -L /sw/bin/gdal_translate
/sw/bin/gdal_translate:
./libgdal.1.1.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 60.2.0)
% otool -L /sw/lib/libgdal.1.1.dylib
/sw/lib/libgdal.1.1.dylib:
./libgdal.1.1.dylib (compatibility version 0.0.0, current version 0.0.0)
/sw/lib/libgif.4.dylib (compatibility version 6.0.0, current version 6.0.0)
/sw/lib/libpng.2.dylib (compatibility version 1.0.12, current version 1.0.12)
/usr/lib/libz.1.1.3.dylib (compatibility version 1.0.0, current version 1.1.3)
/sw/lib/libdl.0.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 60.2.0)
That first entry needs to be "/sw/lib/libgdal.1.1.dylib"
I think this will fix it after the fact (install_name_tool i think only comes with the new dev tools)
sudo install_name_tool -change ./libgdal.1.1.dylib /sw/lib/libgdal.1.1.dylib /sw/bin/gdal_translate
sudo install_name_tool -change ./libgdal.1.1.dylib /sw/lib/libgdal.1.1.dylib /sw/bin/gdaladdo
sudo install_name_tool -id /sw/lib/libgdal.1.1.dylib /sw/lib/libgdal.1.1.dylib
However, the package still needs to be fixed to set the proper -install_name when linking for a permanent fix.
-Ben
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users