[GRASS-user] Problem installing GRASS 6.4.1 on Ubuntu 11.x

Thomas.Adams at noaa.gov Thomas.Adams at noaa.gov
Tue Jun 21 17:49:46 EDT 2011


All:

I just got a Umbuntu Linux box and I'm having all sorts of trouble installing GRASS 6.4.1 from source -- in the past, this process has been very simple on RedHat. What's happening is that I build and install all the supporting libraries (sqlite3, postgresql, fftw, proj4, gdal, etc.) usually using the latest stable releases.

I keep having problems with fftw, which really surprises me. I get:

Errors in:
/home/teaiii/rgrass_dir/grass-6.4.1/lib/gmath
/home/teaiii/rgrass_dir/grass-6.4.1/lib/imagery
/home/teaiii/rgrass_dir/grass-6.4.1/lib/cluster
/home/teaiii/rgrass_dir/grass-6.4.1/lib/rst/interp_float
/home/teaiii/rgrass_dir/grass-6.4.1/lib/nviz
/home/teaiii/rgrass_dir/grass-6.4.1/general/g.transform
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.cluster
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.gensig
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.gensigset
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.group
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.his.rgb
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.maxlik
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.rectify
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.rgb.his
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.smap/shapiro
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.target
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.pca
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.cca
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.fft
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ifft
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.zc
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.class
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ortho.photo/libes
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ortho.photo/menu
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ortho.photo/i.photo.2image
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ortho.photo/i.photo.2target
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ortho.photo/i.photo.camera
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ortho.photo/i.photo.elev
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ortho.photo/i.photo.init
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ortho.photo/i.photo.rectify
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.ortho.photo/i.photo.target
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.points
/home/teaiii/rgrass_dir/grass-6.4.1/imagery/i.vpoints
/home/teaiii/rgrass_dir/grass-6.4.1/ps/ps.map
/home/teaiii/rgrass_dir/grass-6.4.1/raster/r.external
/home/teaiii/rgrass_dir/grass-6.4.1/raster/r.param.scale
/home/teaiii/rgrass_dir/grass-6.4.1/raster/r.resamp.rst
/home/teaiii/rgrass_dir/grass-6.4.1/raster/r.surf.random
/home/teaiii/rgrass_dir/grass-6.4.1/raster/r.surf.gauss
/home/teaiii/rgrass_dir/grass-6.4.1/raster/simwe/simlib
/home/teaiii/rgrass_dir/grass-6.4.1/raster/simwe/r.sim.water
/home/teaiii/rgrass_dir/grass-6.4.1/raster/simwe/r.sim.sediment
/home/teaiii/rgrass_dir/grass-6.4.1/raster/r.in.gdal
/home/teaiii/rgrass_dir/grass-6.4.1/raster/r.out.gdal
/home/teaiii/rgrass_dir/grass-6.4.1/raster/r.surf.fractal
/home/teaiii/rgrass_dir/grass-6.4.1/vector/v.extract
/home/teaiii/rgrass_dir/grass-6.4.1/vector/v.kernel
/home/teaiii/rgrass_dir/grass-6.4.1/vector/v.surf.rst
/home/teaiii/rgrass_dir/grass-6.4.1/vector/lidar/lidarlib
/home/teaiii/rgrass_dir/grass-6.4.1/vector/lidar/v.surf.bspline
/home/teaiii/rgrass_dir/grass-6.4.1/vector/lidar/v.outlier
/home/teaiii/rgrass_dir/grass-6.4.1/vector/lidar/v.lidar.correction
/home/teaiii/rgrass_dir/grass-6.4.1/vector/lidar/v.lidar.edgedetection
/home/teaiii/rgrass_dir/grass-6.4.1/vector/lidar/v.lidar.growing
/home/teaiii/rgrass_dir/grass-6.4.1/visualization/nviz
/home/teaiii/rgrass_dir/grass-6.4.1/visualization/nviz2/cmd
--
In case of errors please change into the directory with error and run 'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
Finished compilation: Tue Jun 21 17:26:07 EDT 2011
make: *** [default] Error 1

If I go into: /home/teaiii/rgrass_dir/grass-6.4.1/lib/gmath and make, I get:

gcc -shared -o /home/teaiii/rgrass_dir/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.6.4.1.so -L/home/teaiii/rgrass_dir/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib -Wl,--export-dynamic -Wl,-rpath-link,/home/teaiii/rgrass_dir/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib -L/usr/local/pgsql/lib   OBJ.x86_64-unknown-linux-gnu/brent.o OBJ.x86_64-unknown-linux-gnu/dalloc.o OBJ.x86_64-unknown-linux-gnu/del2g.o OBJ.x86_64-unknown-linux-gnu/eigen.o OBJ.x86_64-unknown-linux-gnu/eigen_tools.o OBJ.x86_64-unknown-linux-gnu/fft.o OBJ.x86_64-unknown-linux-gnu/findzc.o OBJ.x86_64-unknown-linux-gnu/gauss.o OBJ.x86_64-unknown-linux-gnu/getg.o OBJ.x86_64-unknown-linux-gnu/ialloc.o OBJ.x86_64-unknown-linux-gnu/jacobi.o OBJ.x86_64-unknown-linux-gnu/la.o OBJ.x86_64-unknown-linux-gnu/lu.o OBJ.x86_64-unknown-linux-gnu/max_pow2.o OBJ.x86_64-unknown-linux-gnu/mult.o OBJ.x86_64-unknown-linux-gnu/rand1.o OBJ.x86_64-unknown-linux-gnu/svd.o -lgrass_gis -lgrass_datetime -lz     -lfftw -l
m   -lm   && \
	(cd /home/teaiii/rgrass_dir/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib; ln -f -s libgrass_gmath.6.4.1.so /home/teaiii/rgrass_dir/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.so)
/usr/bin/ld: /usr/local/lib/libfftw.a(fftwnd.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfftw.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [/home/teaiii/rgrass_dir/grass-6.4.1/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.6.4.1.so] Error 1

I've tried fftw-3.2.2 and  fftw-2.1.5 with the same result.

Any suggestions?

Regards,
Tom



More information about the grass-user mailing list