[R-sig-Geo] errors in installing HDF5 package under windows

Roger Bivand Roger.Bivand at nhh.no
Mon Oct 24 09:57:32 CEST 2011


On Sun, 16 Oct 2011, zhijie zhang wrote:

> Dear all,
>  The HDF5 binary package is not available now, so i download the source
> package and unzip it. When i check it before building the package, some
> errors appeared, see below. I donot think it's related with the R and HDF5
> versions. I guess i missed something here.
> --Errors--
> * installing *source* package 'hdf5' ...
> cygwin warning:
>  MS-DOS style path detected:
> C:/PROGRA~1/R/R-213~1.2/bin/i386/HDF5~1.RCH/hdf5/libs
>  Preferred POSIX equivalent is:
> /cygdrive/c/PROGRA~1/R/R-213~1.2/bin/i386/HDF5~1.RCH/hdf5/libs
>  CYGWIN environment variable option "nodosfilewarning" turns off this
> warning.
>  Consult the user's guide for more details about POSIX paths:
>    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> cp: cannot stat `/cygdrive/d/Backup/my
> documents/hdf5-support/cyghdf5-0.dll': No such file or directory
> cp: cannot stat `/cygdrive/d/Backup/my documents/hdf5-support/mgwz.dll': No
> such file or directory
> ERROR: configuration failed for package 'hdf5'
> * removing 'C:/PROGRA~1/R/R-213~1.2/bin/i386/HDF5~1.RCH/hdf5'
> ---------
> If anybody have some experiences on reading HDF4 and HDF5 datasets
> successfully, please also give me more information on this.
>  I have searched the R help, and cannot find a solution. Somebody suggest
> the rgdal, which seems not to work.

You are looking for drivers that need to be built into GDAL before rgdal 
itself is installed - gdalDrivers() lists the drivers available. HDF4 and 
HDF5 are completely different drivers, both with external dependencies. 
The Windows CRAN rgdal binary does not have HDF4 or HDF5, because of the 
external dependencies. You should convert to a supported file format, for 
example GTiff, outside R first.

Roger

>  Any suggestions or help are greatly appreciated.
>
>

-- 
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list