[GRASS-user] problem installing Grass 7 in RHEL6

Markus Metz markus.metz.giswork at gmail.com
Fri Sep 14 01:58:07 PDT 2012


On Fri, Sep 14, 2012 at 9:17 AM, Mauricio Zambrano-Bigiarini
<hzambran.newsgroups at gmail.com> wrote:
> Dear List,
>
> I already managed to compile and install Grass 7 in Ubuntu 12.04, but
> now I want to try it at work.
>
> I'm trying to install Grass 7 on Red Hat Enterprise Linux 6, but I got
> stuck during 'make', and I would like to ask your advice for solving
> the issue.

According to the error log, most of GRASS was compiled successfully
and can be used without problems. The t.* commands require an
additional package python-dateutil which you can install on RHEL 6
with

yum install python-dateutil

After that package has been installed, the t.* modules should compile
successfully.

HTH,

Markus M

>
> My machine:
> $ uname -r
> 2.6.32-279.5.2.el6.x86_64
>
>
> Following the instructions given on
> 'http://grass.osgeo.org/wiki/Compile_and_Install', I tried:
>
> 1) Installing all dependencies:
>
> sudo yum install flex bison zlib-devel  tcl-devel tk-devel gcc-c++
> swig gettext \
>              libtiff-devel libpng-devel sqlite-devel \
>              mesa-libGL-devel mesa-libGLU-devel mesa-libGLw-devel \
>              mesa-libOSMesa-devel libXmu-devel python-devel gtk2-devel\
>              ncurses-devel postgresql-devel
>
> 2) configure:
>
> CFLAGS="-g -Wall" ./configure \
>          --with-cxx \
>          --with-sqlite \
>          --with-postgres \
>          --with-freetype \
>          --with-freetype-includes=/usr/include/freetype2 \
>          --with-motif \
>          --with-proj-share=/usr/share/proj
>
>
> which gave as output:
>
> GRASS is now configured for:  x86_64-unknown-linux-gnu
>
>   Source directory:            /dataMZB/src/grass_trunk
>   Build directory:             /dataMZB/src/grass_trunk
>   Installation directory:      ${prefix}/grass-7.0.svn
>   Startup script in directory: ${exec_prefix}/bin
>   C compiler:                  gcc -g -O2
>   C++ compiler:                c++ -g -O2
>   Building shared libraries:   yes
>   OpenGL platform:             X11
>
>   MacOSX application:         no
>   MacOSX architectures:
>   MacOSX SDK:
>
>   Tcl/Tk NVIZ:                yes
>
>   BLAS support:               no
>   C++ support:                yes
>   Cairo support:              yes
>   DWG support:                no
>   FFMPEG support:             no
>   FFTW support:               no
>   FreeType support:           yes
>   GDAL support:               yes
>   NETCDF support:             no
>   GEOS support:               no
>   LAPACK support:             no
>   Large File support (LFS):   yes
>   libLAS support:             no
>   MySQL support:              no
>   NLS support:                yes
>   ODBC support:               no
>   OGR support:                yes
>   OpenGL support:             yes
>   OpenMP support:             no
>   PNG support:                yes
>   POSIX thread support:       yes
>   PostgreSQL support:         yes
>   Readline support:           no
>   Regex support:              yes
>   SQLite support:             yes
>   TIFF support:               yes
>   Tcl/Tk support:             yes
>   wxWidgets support:          yes
>   X11 support:                yes
>
>
> 3) $ make
>
>
> and the the errors I got at the end of 'make' were:
>
>
> /usr/bin/install -c  -m 644 REQUIREMENTS.html
> /dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/REQUIREMENTS.html
> /usr/bin/install -c  -m 644 GPL.TXT
> /dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/GPL.TXT
> /usr/bin/install -c  -m 644 contributors.csv
> /dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/contributors.csv
> /usr/bin/install -c  -m 644 contributors_extra.csv
> /dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/contributors_extra.csv
> /usr/bin/install -c  -m 644 translators.csv
> /dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/translators.csv
> make[1]: Leaving directory `/dataMZB/src/grass_trunk'
> make manifests
> make[1]: Entering directory `/dataMZB/src/grass_trunk'
> make[1]: Nothing to be done for `manifests'.
> make[1]: Leaving directory `/dataMZB/src/grass_trunk'
> GRASS GIS compilation log
> -------------------------
> Started compilation: Thu Sep 13 17:03:08 CEST 2012
> --
> Errors in:
> /dataMZB/src/grass_trunk/scripts/v.krige
> /dataMZB/src/grass_trunk/temporal/t.create
> /dataMZB/src/grass_trunk/temporal/t.support
> /dataMZB/src/grass_trunk/temporal/t.topology
> /dataMZB/src/grass_trunk/temporal/t.list
> /dataMZB/src/grass_trunk/temporal/t.info
> /dataMZB/src/grass_trunk/temporal/t.remove
> /dataMZB/src/grass_trunk/temporal/t.sample
> /dataMZB/src/grass_trunk/temporal/t.register
> /dataMZB/src/grass_trunk/temporal/t.unregister
> /dataMZB/src/grass_trunk/temporal/t.rast.aggregate
> /dataMZB/src/grass_trunk/temporal/t.rast.aggregate.ds
> /dataMZB/src/grass_trunk/temporal/t.rast.to.rast3
> /dataMZB/src/grass_trunk/temporal/t.rast.univar
> /dataMZB/src/grass_trunk/temporal/t.rast.list
> /dataMZB/src/grass_trunk/temporal/t.rast.mapcalc
> /dataMZB/src/grass_trunk/temporal/t.rast.series
> /dataMZB/src/grass_trunk/temporal/t.rast.export
> /dataMZB/src/grass_trunk/temporal/t.rast.out.vtk
> /dataMZB/src/grass_trunk/temporal/t.rast.import
> /dataMZB/src/grass_trunk/temporal/t.rast.gapfill
> /dataMZB/src/grass_trunk/temporal/t.rast.extract
> /dataMZB/src/grass_trunk/temporal/t.rast3d.list
> /dataMZB/src/grass_trunk/temporal/t.rast3d.extract
> /dataMZB/src/grass_trunk/temporal/t.rast3d.mapcalc
> /dataMZB/src/grass_trunk/temporal/t.rast3d.univar
> /dataMZB/src/grass_trunk/temporal/t.vect.list
> /dataMZB/src/grass_trunk/temporal/t.vect.db.select
> /dataMZB/src/grass_trunk/temporal/t.vect.export
> /dataMZB/src/grass_trunk/temporal/t.vect.extract
> /dataMZB/src/grass_trunk/temporal/t.vect.import
> /dataMZB/src/grass_trunk/temporal/t.vect.what.strds
> /dataMZB/src/grass_trunk/temporal/t.vect.observe.strds
> /dataMZB/src/grass_trunk/temporal/t.vect.univar
>
> --
> 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: Thu Sep 13 17:28:47 CEST 2012
> make: *** [default] Error 1
>
>
>
> Following the instructions, I did make within the first directory
> (/dataMZB/src/grass_trunk/scripts/v.krige) and I did not get any
> error.
>
> Then, I went to the second directory
> (/dataMZB/src/grass_trunk/temporal/t.create), and I got the following
> error message:
>
> $ make
> if [ "/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/scripts/t.create"
> != "" ] ; then GISRC=/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/demolocation/.grassrc70
> GISBASE=/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu
> PATH="/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/bin:/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/bin:$PATH"
> PYTHONPATH="/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python:/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python:$PYTHONPATH"
> LD_LIBRARY_PATH="/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/bin:/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/lib:/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/lib:"
> LC_ALL=C /dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/scripts/t.create
> --html-description < /dev/null | grep -v '</body>\|</html>' >
> t.create.tmp.html ; fi
> Traceback (most recent call last):
>   File "/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/scripts/t.create",
> line 59, in <module>
>     import grass.temporal as tgis
>   File "/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/temporal/__init__.py",
> line 7, in <module>
>     from abstract_map_dataset import *
>   File "/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/temporal/abstract_map_dataset.py",
> line 22, in <module>
>     from datetime_math import *
>   File "/dataMZB/src/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/temporal/datetime_math.py",
> line 17, in <module>
>     from dateutil import parser
> ImportError: No module named dateutil
> make: *** [t.create.tmp.html] Error 1
> rm t.create.tmp.html
>
>
>
> Do you have any advice for solving this problem and get Grass 7
> installed on RHEL 6 ?
>
>
> Thanks in advance,
>
> Mauricio Zambrano-Bigiarini
>
> --
> ========================================
> Water Resources Unit
> Institute for Environment and Sustainability
> Joint Research Centre, European Commission
> webinfo    : http://floods.jrc.ec.europa.eu/
> ========================================
> DISCLAIMER:
> "The views expressed are purely those of the writer
> and may not in any circumstances be regarded as
> stating an official position of the European Commission"
> =========================================
> Linux user #454569 -- Ubuntu user #17469
> =========================================
> "If you can dream it, you can do it" . (Walt Disney)
> =========================================
> http://c2.com/cgi/wiki?HowToAskQuestionsTheSmartWay
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list