[GRASS-user] Compiling from source on RHEL 5.x

johannnes83 j.m.signer at gmail.com
Mon May 9 21:49:21 EDT 2011


Dear All, 

I am trying to install grass on a server that runs on Redhat EL. I am using
the following commands:

./configure --with-fftw-libs=/usr/local/lib
--with-fftw-includes=/usr/local/include --with-opengl=no

which doesn't give any errors. However after running make I get the
following error messages:

Errors in:
/home/jsigner/software/grass-6.4.1/general/g.transform
/home/jsigner/software/grass-6.4.1/imagery/i.cluster
/home/jsigner/software/grass-6.4.1/imagery/i.gensig
/home/jsigner/software/grass-6.4.1/imagery/i.gensigset
/home/jsigner/software/grass-6.4.1/imagery/i.group
/home/jsigner/software/grass-6.4.1/imagery/i.his.rgb
/home/jsigner/software/grass-6.4.1/imagery/i.maxlik
/home/jsigner/software/grass-6.4.1/imagery/i.rectify
/home/jsigner/software/grass-6.4.1/imagery/i.rgb.his
/home/jsigner/software/grass-6.4.1/imagery/i.smap/shapiro
/home/jsigner/software/grass-6.4.1/imagery/i.target
/home/jsigner/software/grass-6.4.1/imagery/i.pca
/home/jsigner/software/grass-6.4.1/imagery/i.cca
/home/jsigner/software/grass-6.4.1/imagery/i.class
/home/jsigner/software/grass-6.4.1/imagery/i.ortho.photo/menu
/home/jsigner/software/grass-6.4.1/imagery/i.ortho.photo/i.photo.2image
/home/jsigner/software/grass-6.4.1/imagery/i.ortho.photo/i.photo.2target
/home/jsigner/software/grass-6.4.1/imagery/i.ortho.photo/i.photo.camera
/home/jsigner/software/grass-6.4.1/imagery/i.ortho.photo/i.photo.elev
/home/jsigner/software/grass-6.4.1/imagery/i.ortho.photo/i.photo.init
/home/jsigner/software/grass-6.4.1/imagery/i.ortho.photo/i.photo.rectify
/home/jsigner/software/grass-6.4.1/imagery/i.ortho.photo/i.photo.target
/home/jsigner/software/grass-6.4.1/imagery/i.points
/home/jsigner/software/grass-6.4.1/imagery/i.vpoints
/home/jsigner/software/grass-6.4.1/ps/ps.map
/home/jsigner/software/grass-6.4.1/raster/r.external
/home/jsigner/software/grass-6.4.1/raster/r.param.scale
/home/jsigner/software/grass-6.4.1/raster/r.resamp.rst
/home/jsigner/software/grass-6.4.1/raster/r.surf.random
/home/jsigner/software/grass-6.4.1/raster/r.surf.gauss
/home/jsigner/software/grass-6.4.1/raster/simwe/r.sim.water
/home/jsigner/software/grass-6.4.1/raster/simwe/r.sim.sediment
/home/jsigner/software/grass-6.4.1/raster/r.in.gdal
/home/jsigner/software/grass-6.4.1/raster/r.out.gdal
/home/jsigner/software/grass-6.4.1/vector/v.extract
/home/jsigner/software/grass-6.4.1/vector/v.kernel
/home/jsigner/software/grass-6.4.1/vector/v.surf.rst
/home/jsigner/software/grass-6.4.1/vector/lidar/v.surf.bspline
/home/jsigner/software/grass-6.4.1/vector/lidar/v.outlier
/home/jsigner/software/grass-6.4.1/vector/lidar/v.lidar.correction
/home/jsigner/software/grass-6.4.1/vector/lidar/v.lidar.edgedetection
/home/jsigner/software/grass-6.4.1/vector/lidar/v.lidar.growing

As suggest by the error message I tried to run make within some of the
modules. E.g in r.in.gdal, but again I got an error:
gcc -L/home/jsigner/software/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/home/jsigner/software/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib   
-o
/home/jsigner/software/grass-6.4.1/dist.x86_64-unknown-linux-gnu/bin/r.in.gdal
OBJ.x86_64-unknown-linux-gnu/main.o  -lgrass_gproj -lgrass_gis
-lgrass_datetime -lz     -lproj  -L/usr/local/lib -lgdal  -lgrass_gis
-lgrass_datetime -lz     -lgrass_I -lgrass_gis -lgrass_datetime -lz     
-L/usr/local/lib -lgdal -lgrass_gmath -lgrass_gis -lgrass_datetime -lz     
-lm  -lz 
/home/jsigner/software/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.so:
undefined reference to `fftw_execute'
/home/jsigner/software/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.so:
undefined reference to `fftw_destroy_plan'
/home/jsigner/software/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.so:
undefined reference to `fftw_plan_dft_2d'
collect2: ld returned 1 exit status
make: ***
[/home/jsigner/software/grass-6.4.1/dist.x86_64-unknown-linux-gnu/bin/r.in.gdal]
Error 1

My guess was that it might has something to do with fftw, but I no matter
how I change the configure command (e.g using --without-fftw) the error
persisted.

Any hints would be very appreciated!
Johannes 

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Compiling-from-source-on-RHEL-5-x-tp6346248p6346248.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list