[GRASS5] 5.7: compilation shared libs on Mac OSX failure
Markus Neteler
neteler at itc.it
Wed Nov 19 12:50:02 EST 2003
Just for the record:
While the compilation runs ok now, I faced another
problem with GRASS 5.7/shared libs on MacOSX when using it:
dyld: /usr/local/grass57-17_11_2003/etc/lock can't open library:
/grass57exp/dist.powerpc-apple-darwin6.8/lib/libgrass_gis.dylib (No such file or directory, errno = 2)
/usr/local/grass57-17_11_2003/etc/Init.sh: line 147: 784 Trace/BPT
trap "$ETC/lock" "$lockfile" $$
Unable to properly access /Users/fabrizio/.gislock57
Please notify system personel.
Programs (all?) such as 'etc/lock' have the path to the dynamic
library hardcoded. After installation into a different place
(e.g. /usr/local/something) it still searches the old
path used at compile time.
Solution:
On MacOSX one has to set DYLD_LIBRARY_PATH (instead of LD_LIBRARY_PATH).
After patching /etc/Init.sh GRASS 5.7 with shared libs on MacOSX works now.
The relevant file in CVS is updated (needs still a trivial fix for
"powermac").
Working configuration:
./configure --with-grass50=/grass53exp \
--enable-shared \
--with-includes="/usr/X11R6/include /sw/include" --with-libs=/sw/lib \
--with-tiff-includes=/sw/include --with-tiff-libs=/sw/lib \
--with-tcltk-includes=/sw/include --with-tcltk-libs=/sw/lib/tcl8.4 \
--with-gd-includes=/sw/include \
--with-opengl-libs=/usr/X11R6/lib --with-opengl-includes=/usr/X11R6/include \
--with-fftw-includes=/sw/include \
--with-gdal=/sw/bin/gdal-config \
--without-odbc \
--without-postgres
Cheers
Markus Neteler
More information about the grass-dev
mailing list