[gdal-dev] compile gdal 2.1.3 with HDF5 support on Debian Lennie

Rainer M Krug Rainer at krugs.de
Fri Jan 27 06:43:11 PST 2017


Thanks for the answer - but the problem was a short coming in the
detection of the library location as Even pinted out.

Thanks,

Rainer

Andrew C Aitchison <andrew at aitchison.me.uk> writes:

> Rainer,
>
> I'm not very familiar with Debian or apt-get, but does installing libhdf5
> perhaps with something like
> 	apt-get install -y --no-install-recommends libhdf5
> help ?
> If so, the "--no-install-recommends" may be making things harder for you.
>
> Alternatively, the problem *might* be that the commented lines (##)
> do not end with a backslash (/).
>
> On Fri, 27 Jan 2017, Rainer M Krug wrote:
>
>> Hi
>>
>> We am working on a docker image for spatial analysis using R (see
>> https://github.com/rocker-org/rocker/issues/213 for the discussion) and
>> I am struggling to get gdal compiled with HDF5 support.
>>
>> I install the following dependencies:
>>
>> --8<---------------cut here---------------start------------->8---
>> apt-get install -y --no-install-recommends \
>>  libproj-dev \
>>  libgeos-dev \
>>  ## hdf4
>>  libhdf4-alt-dev \
>>  ## hdf5
>>  libhdf5-dev \
>>  libhdf5-serial-dev \
>>  zlib1g-dev \
>>  ## sqlite
>>  libsqlite3-dev \
>>  ## freexl
>>  libfreexl.dev \
>>  ## odbc
>>  unixodbc-dev \
>>  ## diverse
>>  libexpat1-dev \
>>  libxerces-c-dev \
>>  libnetcdf-dev \
>>  libudunits2-dev \
>>  ## KML
>>  libkml-dev --8<---------------cut
>> here---------------end--------------->8---
>>
>> and use the following configure options
>>
>> --8<---------------cut here---------------start------------->8---
>> ./configure \
>>    --with-geotiff \
>>    --with-sqlite3 \
>>    --with-freexl \
>>    --with-spatialite \
>>    --with-geos \
>>    --with-hdf4 \
>>    --with-hdf5 \
>>    --with-libjson-c \
>>    --with-netcdf \
>>    --with-odbc \
>>    --with-curl \
>>    --without-grass \
>>    --without-libgrass
>> --8<---------------cut here---------------end--------------->8---
>>
>> But I get the following message in the configure output
>>
>> ,----
>> | checking for H5Fopen in -lhdf5... no
>> `----
>>
>> which than results in
>>
>> ,----
>> | HDF5 support:              no
>> `----
>>
>> Any ideas what I am missing?
>>
>> Thanks,
>>
>> Rainer
>>
>> -- 
>> Rainer M. Krug
>> email: Rainer<at>krugs<dot>de
>> PGP: 0x0F52F982
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug

PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 454 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170127/0ab05462/attachment.sig>


More information about the gdal-dev mailing list