[GRASS-user] grass72 or higher on RHEL6

joerg robl joerg.robl at gmail.com
Wed Feb 1 23:47:04 PST 2017


Dear Anna, All,

Thank you for your response!

Here the results of the configure script that look correct. In this case
grass7_trunk.


[jrobl at geo1 grass7_trunk]$  ./configure \
>   --with-cxx \
>   --with-gdal=/usr/bin/gdal-config \
>   --with-proj --with-proj-share=/usr/share/proj \
>   --with-python=/usr/bin/python-config \
>   --with-geos \
>   --with-sqlite \
>   --with-nls \
>   --with-wxwidgets=/usr/bin/wx-config \
>   --with-fftw \
>   --with-cairo --with-cairo-ldflags=-lfontconfig \
>   --with-freetype --with-freetype-includes=/usr/include/freetype2 \
>   --enable-largefile \
>   --without-odbc
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for full floating-point support... yes
checking for pwd... /bin/pwd
checking for source directory... /usr/local/src/GRASS/grass7_trunk
checking for build directory... /usr/local/src/GRASS/grass7_trunk
checking for svnversion... /usr/bin/svnversion
checking for MacOSX App... no
checking for MacOSX architectures... no
checking for MacOSX SDK... no
checking how to build libraries... shared
checking for additional include dirs...
checking for additional library dirs...
checking for a BSD compatible install... /usr/bin/install -c
checking for flex... flex
checking for yywrap in -lfl... no
checking for bison... bison -y
checking for ranlib... ranlib
checking for ar... ar
checking for env... env
checking for perl... /usr/bin/perl
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for limits.h... yes
checking for termio.h... yes
checking for termios.h... yes
checking for unistd.h... yes
checking for values.h... yes
checking for f2c.h... no
checking for g2c.h... no
checking for sys/ioctl.h... yes
checking for sys/mtio.h... yes
checking for sys/resource.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for sys/types.h... yes
checking for sys/utsname.h... yes
checking for libintl.h... yes
checking for iconv.h... yes
checking for langinfo.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for off_t... yes
checking for uid_t in sys/types.h... yes
checking return type of signal handlers... void
checking for Cygwin environment... no
checking for ftime... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for lseek... yes
checking for nice... yes
checking for time... yes
checking for uname... yes
checking for seteuid... yes
checking for setpriority... yes
checking for setreuid... yes
checking for setruid... no
checking for drand48... yes
checking for putenv... yes
checking for setenv... yes
checking for nanosleep... yes
checking whether setpgrp takes no argument... yes
checking for long long int... yes
checking for W11... no
checking for X... libraries /usr/lib64, headers
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for library containing cuserid... none required
checking for asprintf... yes
checking for atan... no
checking for atan in -lm... yes
checking for dlsym... no
checking for dlsym in -ldl... yes
checking for iconv... yes
checking for socket... yes
checking for location of zlib includes...
checking for zlib.h... yes
checking for location of zlib library...
checking for deflate in -lz... yes
checking whether to use bzlib... no
checking for location of External PROJ.4 includes...
checking for proj_api.h... yes
checking External PROJ.4 version... 470
checking for location of External PROJ.4 library...
checking for pj_get_def in -lproj... yes
checking for location of External PROJ.4 data files... /usr/share/proj
checking for /usr/share/proj/epsg... yes
checking for nad2bin... /usr/bin/nad2bin
checking whether to use regex... yes
checking for location of regex includes...
checking for regex.h... yes
checking for location of regex library...
checking for regcomp... yes
checking whether to use Readline... no
checking whether to use GDAL... yes
checking for gdal-config... /usr/bin/gdal-config
checking whether to use libLAS... no
checking whether to use PDAL... no
checking whether to use NetCDF... no
checking whether to use GEOS... yes
checking for geos-config... /usr/bin/geos-config
checking for geos_c.h... yes
checking for initGEOS in -lgeos_c... yes
checking whether to use TIFF... yes
checking for location of TIFF includes...
checking for tiffio.h... yes
checking for location of TIFF library...
checking for TIFFOpen in -ltiff... yes
checking whether to use PNG... yes
checking for location of PNG includes...
checking for png.h... yes
checking for location of PNG library...
checking for png_read_image in -lpng... yes
checking whether to use PostgreSQL... no
checking whether to use MySQL... no
checking whether to use SQLite... yes
checking for location of SQLite includes...
checking for sqlite3.h... yes
checking for location of SQLite library...
checking for sqlite3_open in -lsqlite3... yes
checking whether to use OpenGL... yes
checking for location of OpenGL includes...
checking for GL/gl.h... yes
checking for GL/glu.h... yes
checking for location of OpenGL library...
checking for glBegin in -lGL... yes
checking for gluBeginCurve in -lGLU... yes
checking for glXCreatePbuffer... yes
checking for glXCreateGLXPixmap... yes
checking whether to use ODBC... no
checking whether to use FFTW... yes
checking for location of FFTW includes...
checking for fftw3.h... yes
checking for location of FFTW library...
checking for fftw_execute in -lfftw3... yes
checking whether to use BLAS... no
checking whether to use LAPACK... no
checking whether to use Cairo... yes
checking for location of cairo includes...
checking for cairo.h... yes
checking for location of cairo library...
checking for cairo linking flags... -lfontconfig
checking for cairo_create... yes
checking for cairo_xlib_surface_create_with_xrender_format... yes
checking for cairo_xlib_surface_get_xrender_format... yes
checking whether to use FreeType... yes
checking for location of FreeType includes... /usr/include/freetype2
checking for ft2build.h... yes
checking for location of FreeType library...
checking for FT_Init_FreeType in -lfreetype... yes
checking whether to use NLS... yes
checking for gettext... yes
checking whether to use C++... yes
checking for c++... c++
checking whether the C++ compiler (c++   -Wl,--export-dynamic) works... yes
checking whether the C++ compiler (c++   -Wl,--export-dynamic) is a
cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking whether to use openDWG... no
checking whether to use POSIX threads... no
checking whether to use OpenMP... no
checking whether to use OpenCL... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... yes
checking if system supports Large Files at all... yes
creating ./config.status
creating include/Make/Platform.make
creating include/Make/Doxyfile_arch_html
creating include/Make/Doxyfile_arch_latex
creating include/version.h
creating grass.pc
creating include/config.h
include/config.h is unchanged
Copying config.status to config.status.x86_64-pc-linux-gnu

GRASS is now configured for:  x86_64-pc-linux-gnu

  Source directory:           /usr/local/src/GRASS/grass7_trunk
  Build directory:            /usr/local/src/GRASS/grass7_trunk
  Installation directory:     ${prefix}/grass-7.3.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:

  BLAS support:               no
  BZIP2 support:              no
  C++ support:                yes
  Cairo support:              yes
  DWG support:                no
  FFTW support:               yes
  FreeType support:           yes
  GDAL support:               yes
  GEOS support:               yes
  LAPACK support:             no
  Large File support (LFS):   yes
  libLAS support:             no
  MySQL support:              no
  NetCDF support:             no
  NLS support:                yes
  ODBC support:               no
  OGR support:                yes
  OpenCL support:             no
  OpenGL support:             yes
  OpenMP support:             no
  PDAL support:               no
  PNG support:                yes
  POSIX thread support:       no
  PostgreSQL support:         no
  Readline support:           no
  Regex support:              yes
  SQLite support:             yes
  TIFF support:               yes
  X11 support:                yes

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

I compile with:
make -j16
and get the following errors

GRASS GIS 7.3.svn r70462 compilation log
--------------------------------------------------
Started compilation: Thu Feb  2 08:36:48 CET 2017
--
Errors in:
/usr/local/src/GRASS/grass7_trunk/display/d.linegraph
/usr/local/src/GRASS/grass7_trunk/display/d.barscale
/usr/local/src/GRASS/grass7_trunk/display/d.northarrow
/usr/local/src/GRASS/grass7_trunk/display/d.vect
/usr/local/src/GRASS/grass7_trunk/raster/r.colors
/usr/local/src/GRASS/grass7_trunk/vector/v.colors
/usr/local/src/GRASS/grass7_trunk/temporal/t.rast.colors
/usr/local/src/GRASS/grass7_trunk/man
--
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 Feb  2 08:38:16 CET 2017
make: *** [default] Error 1

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Anyhow, I can start ./grass73 and the starting screen is working correctly.
[image: Inline-Bild 1]

However, after starting a GRASS session the GUI crashes.


Launching <wxpython> GUI in the background, please wait...
GRASS 7.3.svn
(xy):/usr/local/src/GRASS/grass7_trunk/bin.x86_64-pc-linux-gnu > Traceback
(most recent call last):
  File
"/usr/local/src/GRASS/grass7_trunk/dist.x86_64-pc-linux-gnu/scripts/g.extension",
line 1733, in <module>
    sys.exit(main())
  File
"/usr/local/src/GRASS/grass7_trunk/dist.x86_64-pc-linux-gnu/scripts/g.extension",
line 1696, in main
    list_installed_extensions(toolboxes=flags['t'])
  File
"/usr/local/src/GRASS/grass7_trunk/dist.x86_64-pc-linux-gnu/scripts/g.extension",
line 247, in list_installed_extensions
    elist = get_installed_extensions()
  File
"/usr/local/src/GRASS/grass7_trunk/dist.x86_64-pc-linux-gnu/scripts/g.extension",
line 242, in get_installed_extensions
    return get_installed_modules(force)
  File
"/usr/local/src/GRASS/grass7_trunk/dist.x86_64-pc-linux-gnu/scripts/g.extension",
line 310, in get_installed_modules
    ret.append('name={}'.format(tnode.get('name').strip()))
ValueError: zero length field name in format
----------------------------------------------------------------------------------------------------------------------------------------------------------------------

I can start the forms of individual commands (e.g. r.watershed) but in case
I start g.gui from the grass terminal, the GUI crashes again.
I would love working with the new version of GRASS!

cheers Jörg



2017-02-01 15:23 GMT+01:00 Anna Petrášová <kratochanna at gmail.com>:

> Hi,
>
> On Wed, Feb 1, 2017 at 5:21 AM, joerg robl <joerg.robl at gmail.com> wrote:
> > Dear GRASS Gurus,
> >
> >
> >
> > I’m using GRASS GIS for research and teaching on a server with a rather
> old
> > Linux (RHEL6). We use GRASS GIS for processing satellite images
> (LANDSAT8)
> > which is the main motivation to update to grass72.
> >
> >
> >
> > I’ve compiled grass from source up to version 7.1 but unfortunately I get
> > compilation errors compiling grass72 or higher (the configure script does
> > not complain about any problems). It seems the compilation problems may
> be
> > related to the rather old matplotlib (0.9x) while grass requires
> matplotlib
> >> 1.2. As a result, the GRASS GUI crashes after the startup. Of course it
> > may be possible to compile matplotlib from source, which however
> requires a
> > higher version of numpy which in turn requires at least python2.7x
> instead
> > of the installed python 2.6x. Not necessary to say that after compiling
> and
> > installing python2.7x the wxPhyton libs would also require an update … !
> At
> > that point I ended up compiling grass72 on RHEL6.
> >
>
> could you show us any errors you are getting during compilation or
> startup? Matplotlib is not a core component, so this should be
> solvable.
>
> Anna
>
> >
> >
> > I’m just wondering if there is a standalone version of GRASS GIS for
> Linux,
> > similar to the Windows version, where all libs are statically linked and
> > packed together.
> >
> > Any ideas how to bring grass72 or the bleeding edge 7.3 up and running on
> > RHEL6.
> >
> >
> >
> > cheers Jörg
> >
> >
> > _______________________________________________
> > grass-user mailing list
> > grass-user at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170202/c7849834/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 78670 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170202/c7849834/attachment-0001.png>


More information about the grass-user mailing list