[GRASSLIST:91] Re: nviz: error while loading shared libraries: libtk.so.0
H Bowman
hamish_nospam at yahoo.com
Tue May 20 20:55:02 EDT 2003
> I'm using RedHat Linux 9, bash and GRASS 5.0.2. When I attempt to run
>
> GRASS:~ > nviz
>
> the result is "/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"
Was your grass compiled under RH8 and then you upgraded? If so, you may
need to rebuild..
I did a fresh install of RedHat 9 yesterday on a new machine, along
with a fresh install of Grass 5.0.2. Everything worked, including NVIZ.
Had to download fftw-2.1.5 source and compile, add /usr/local/lib to
/etc/ld.so.conf, and run ldconfig first. (for FFT functions)
next, the following need to be installed, beyond the generic workstation
+ development packages:
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.x from rawhide.redhat.com
#gd-devel
tk
XFree86-Mesa-libGL
XFree86-Mesa-libGLU
XFree86-devel
gdbm-devel
postfix
freetype-devel
(most of those should already be there)
finally, build with
(replace pentium4 with athlon etc..)
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-dbm \
--with-dbm-includes=/usr/include/gdbm \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2
# --with-readline \
make
make install
need cludge to get readline working. Run config without, then do
http://article.gmane.org/gmane.comp.gis.grass.user/1000
before make
hope that helps,
Hamish
More information about the grass-user
mailing list