[GRASSLIST:4513] Re: compiling GRASS 5.7.0

Hamish hamish_nospam at yahoo.com
Tue Oct 12 17:10:50 EDT 2004


> I have been trying to compile the source code for GRASS 5.7.0 on a
> ReHat 9 sytem with the following configure command:


The following are generic instructions for installing GRASS 5.7 on RH9.

Download and install GDAL and PROJ.4 from www.remotesensing.org.

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. 

--

RH 9.0 package 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
#gd-devel    (gd is no longer needed)
tk 
XFree86-Mesa-libGL2 
XFree86-Mesa-libGLU
XFree86-devel2 
gdbm-devel 
postfix 
freetype-devel 

--

get latest CVS snapshot of GRASS 5.3
get latest CVS snapshot of GRASS 5.7

unpack both in /usr/src/grass/

--

Redhat 9:
CFLAGS="-O3 -march=pentium4  -g -Wall" ./configure \
    --with-grass50=/usr/src/grass/grass53-cvs \
    --with-motif --with-motif-includes=/usr/X11R6/LessTif/Motif1.2/include \
    --with-motif-libs=/usr/X11R6/LessTif/Motif1.2/lib \
    --with-glw --with-proj --with-gdal \
    --with-blas --with-lapack --with-dbm --with-cxx \
    --with-freetype --with-freetype-includes=/usr/include/freetype2
# --with-readline


make mix
make

To run GRASS 5.7, simply start
./bin.$ARCH/grass51




good luck,
Hamish




More information about the grass-user mailing list