[GRASS-user] Fail to configure grass-7.0.4 under Ubuntu 16.04.1

Thomas Adams tea3rd at gmail.com
Wed Sep 28 04:56:32 PDT 2016


You can compile with hdf5... not a problem; same with python3, I believe

Tom

On Wed, Sep 28, 2016 at 7:05 AM, JIA Pei <jp4work at gmail.com> wrote:

>
> By this command " sudo apt-get build-dep grass", I got:
>
> The following NEW packages will be installed:
>>  autoconf2.13 libgdal-dev libgdal1i libhdf4-0-alt libhdf4-alt-dev
>> liblas-c-dev liblas-c3 liblas-dev liblas3 netcdf-bin python-pil python-ply
>> python-wxgtk3.0 python-wxversion
>
>
> But, unfortunately,
> 1)  installed my own libgdal-dev, instead of Ubuntu's default one from
> repository
> 2)  I NEVER use libhdf4, clearly I prefer libhdf5
> 3) I use Python 3.5.2, instead of python 2
> 4) liblas from repository requires libgdal-dev from repository, and relies
> on libhdf4 ....
>
>
> So, will grass move to
> Python3
> libhdf5
> ?????
>
>
> Cheers
>
>
>
> On Tue, Sep 27, 2016 at 6:41 PM, Thomas Adams <tea3rd at gmail.com> wrote:
>
>> Go here: https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu
>>
>> Look at this:
>>
>>
>>  tar xzf grass-7.0.4.tar.gz
>>  cd grass-7.0.4/
>>
>>  # install build dependency packages:
>>  sudo apt-get build-dep grass
>>
>>  # configure to taste..CFLAGS="-O2 -Wall" LDFLAGS="-s" ./configure \
>>     --enable-largefile=yes \
>>     --with-nls \
>>     --with-cxx \
>>     --with-proj-share=/usr/share/proj/ \
>>     --with-geos \
>>     --with-wxwidgets \
>>     --with-cairo \
>>     --with-opengl-libs=/usr/include/GL \
>>     --with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
>>     --with-postgres=yes --with-postgres-includes="/usr/include/postgresql" \
>>     --with-sqlite=yes \
>>     --with-mysql=yes --with-mysql-includes="/usr/include/mysql" \
>>     --with-odbc=no \
>>      2>&1 | tee config_log.txt
>>
>>  # build using 4 CPU cores
>>  time make -j 4 2>&1 | tee build_log.txt
>>
>>  sudo make install
>>
>>
>>
>>
>> Tom
>>
>> On Tue, Sep 27, 2016 at 8:34 PM, JIA Pei <jp4work at gmail.com> wrote:
>>
>>>
>>> Hi, all:
>>>
>>> I failed to configure grass-7.0.4, can anybody give me a hand?
>>> OS: Ubuntu 16.04.1
>>> GCC/G++: Ubuntu 5.4.0-6ubuntu1~16.04.2
>>> FreeType: libfreetype6 2.6.1-0.1ubuntu2
>>>
>>>
>>>
>>>> jiapei:grass-7.0.4$ ./configure
>>>> 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... /home/jiapei/Downloads/rsgis/O
>>>> SGeo/grass/grass-7.0.4
>>>> checking for build directory... /home/jiapei/Downloads/rsgis/O
>>>> SGeo/grass/grass-7.0.4
>>>> 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... yes
>>>> 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... yes
>>>> 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 , headers
>>>> checking for dnet_ntoa in -ldnet... yes
>>>> 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 for location of External PROJ.4 includes...
>>>> checking for proj_api.h... yes
>>>> checking External PROJ.4 version... 492
>>>> 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...
>>>> configure: warning: *** External PROJ.4 directory not specified;
>>>> default will be used
>>>> 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/local/bin/gdal-config
>>>> checking whether to use libLAS... no
>>>> checking whether to use NetCDF... no
>>>> checking whether to use GEOS... no
>>>> 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...
>>>> 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...
>>>>
>>>> *checking for ft2build.h... no **configure: error: *** Unable to
>>>> locate FreeType includes.*
>>>> jiapei:grass-7.0.4$
>>>
>>>
>>>
>>>
>>> Cheers
>>> --
>>>
>>> Pei JIA, Ph.D.
>>>
>>> Email: jp4work at gmail.com
>>> cell in Canada:    +1 778-863-5816
>>> cell in China: +86 186-8244-3503
>>>
>>> Welcome to Vision Open
>>> http://www.visionopen.com
>>>
>>> _______________________________________________
>>> grass-user mailing list
>>> grass-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>>
>>
>>
>>
>
>
> --
>
> Pei JIA, Ph.D.
>
> Email: jp4work at gmail.com
> cell in Canada:    +1 778-863-5816
> cell in China: +86 186-8244-3503
>
> Welcome to Vision Open
> http://www.visionopen.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160928/2c2cc78f/attachment-0001.html>


More information about the grass-user mailing list