[GRASSLIST:3646] Re: [GRASS5] [bug #2471] (grass) nviz startup
Hamish
hamish_nospam at yahoo.com
Wed Jun 9 20:40:35 EDT 2004
> Subject: nviz startup
>
> I am using Red Hat Linux 9.0
>
> When I write nviz at grass prompt I have this error:
>
> GRASS:~ > nviz
> /usr/local/grass5/etc/nviz2.2/NVWISH2.2: error while loading shared
> libraries: libtk.so.0: cannot open shared object file: No such file or
> directory child process exited abnormally
NVIZ works fine for me on Red Hat Linux 9.0.
here are some compiling hints:
RH 9.0 reqs:
use "rpm -q PACKAGE" to test,
then "rpm -Uvh PACKAGE-1.2.3-4.i386.rpm" to install..
postgresql
postgresql-odbc
postgresql-server
postgresql-devel
unixODBC
unixODBC-devel
lesstif
lesstif-devel
blas
lapack
readline
libjpeg
libjpeg-devel
libtiff
libtiff-devel
libpng
libpng-devel
#gd get v2.0 from rawhide.redhat.com (needed for GRASS 5.0 ONLY)
#gd-devel
tk
XFree86-Mesa-libGL2
XFree86-Mesa-libGLU
XFree86-devel2
gdbm-devel
postfix
freetype-devel
Also need to compile:
fftw-2.1.5
PROJ.4: http://www.remotesensing.org/proj
GDAL: http://www.remotesensing.org/gdal
After compiling & installing those, edit /etc/ld.so.conf and put
/usr/local/lib as the last line in the file.
Then run '/sbin/ldconfig' to allow other programs to see your
new libraries.
GRASS 5.3 on Redhat 9.0 with a Pentium 4 based processor:
CFLAGS="-O3 -march=pentium4 -Wall" LDFLAGS="-s" ./configure \
--with-postgres-includes=/usr/include/pgsql/server \
--with-motif \
--with-motif-includes=/usr/X11R6/LessTif/Motif1.2/include/ \
--with-motif-libs=/usr/X11R6/LessTif/Motif1.2/lib/ \
--with-blas --with-lapack \
--with-glw \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2 \
--with-cxx --with-gdal --with-proj
$ make
# make install
need cludge to get readline working. Run config without, then do
http://article.gmane.org/gmane.comp.gis.grass.user/1000
------------------------------------------------------------------
OK; it's a known problem. At present, the only workaround is to
manually edit src/CMD/head/head, e.g.
READLINELIB = -lreadline -lncurses
and src/include/config.h, e.g.
/* define if readline exists */
#define HAVE_READLINE_READLINE_H 1
------------------------------------------------------------------
But it isn't critical.
good luck,
Hamish
More information about the grass-user
mailing list