Error: Configure HDF5 cygwin64 windows10 [resolved]


#1

Hi,

I am currently installing the hdf5-1.10.3 source code on my windows 10 computer. I am using cygwin64 and following the steps from : here

with
windows 10 (64)
hdf5-1.10.3
cygwin : 3.1.6
gcc version : 7.4.0

Here is my code :
s1897502@ENG-6703 /cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3
$ ./configure
–with-szlib=cygdrive/c/cygwin64/usr/src/zlib-1.2.11-1.src/zlib-1.2.11 --prefix=C:/Users/s1897502/hdf5/build
–enable-cxx
–enable-fortran

and I am getting the following error :

checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 3: $’\r’: command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 5: $’\r’: command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 8: $’\r’: command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 13: $’\r’: command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 18: $’\r’: command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 21: $’\r’: command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 26: $’\r’: command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 32: syntax error near unexpected token $'in\r'' 'cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 32:case $1 in
configure: WARNING: ‘missing’ script is too old or missing
checking for a thread-safe mkdir -p… /usr/bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether make supports nested variables… (cached) yes
checking whether to enable maintainer-specific portions of Makefiles… no
configure: error: cannot run /bin/sh bin/config.sub

Thanks in advance for your help

Marilou


#2

[marilou.jourdain] marilou.jourdain
https://forum.hdfgroup.org/u/marilou.jourdain Marilou Jourdain
https://forum.hdfgroup.org/u/marilou.jourdain
July 23

Hi,

I am currently installing the hdf5-1.10.3 source code on my windows 10
computer. I am using cygwin64 and following the steps from : here
https://support.hdfgroup.org/ftp/HDF5/current18/src/unpacked/release_docs/INSTALL_Cygwin.txt

with
windows 10 (64)
hdf5-1.10.3
cygwin : 3.1.6
gcc version : 7.4.0

Here is my code :
s1897502@ENG-6703 /cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3
$ ./configure
–with-szlib=cygdrive/c/cygwin64/usr/src/zlib-1.2.11-1.src/zlib-1.2.11
–prefix=C:/Users/s1897502/hdf5/build
–enable-cxx
–enable-fortran

and I am getting the following error :

checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 3: $’\r’:
command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 5: $’\r’:
command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 8: $’\r’:
command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 13: $’\r’:
command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 18: $’\r’:
command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 21: $’\r’:
command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 26: $’\r’:
command not found
/cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 32: syntax
error near unexpected token |$‘in\r’’
'cygdrive/c/Users/s1897502/hdf5/hdf5-1.10.3/bin/missing: line 32:|case $1 in

are you using the right source package ?
It seems you are using one with CRLF termination in the script
and hdf5-1.10.6.tar.bz2 I used have not such problem.

configure: WARNING: ‘missing’ script is too old or missing
checking for a thread-safe mkdir -p… /usr/bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether make supports nested variables… (cached) yes
checking whether to enable maintainer-specific portions of Makefiles… no
configure: error: cannot run /bin/sh bin/config.sub

Thanks in advance for your help

Marilou

Regards
MArco


#3

Hi Marco,

I have tried with hdf5-1.10.6.tar.bz2 and it worked :smiley:
Thank you very much !!

Marilou