NordicESMhub / containers

Containers for running ESM related tools
https://nordicesmhub.github.io/containers/
MIT License
4 stars 0 forks source link

How to get hdf5 source from command line and not through web interface #2

Open annefou opened 5 years ago

annefou commented 5 years ago

For now I have (in the dockerfile cesm/2.1.0/Dockerfile):

~~~bash RUN wget -O hdf5-1.10.5.tar.gz --no-check-certificate https://www.hdfgroup.org/package/hdf5-1-10-5-tar-gz/?wpdmdl=13571&refresh=5cb739d6d3ef21555511766 && \ tar zxvf hdf5-1.10.5.tar.gz && cd hdf5-1.10.5 && \ ./configure CC=mpicc CXX=mpic++ F77=mpifort FC=mpifort --enable-fortran --enable-parallel && \ make && make install && cd .. && rm -rf hdf5.1.10.5


But I get an error:
~~~`bash`
Step 7/13 : RUN wget -O hdf5-1.10.5.tar.gz --no-check-certificate https://www.hdfgroup.org/package/hdf5-1-10-5-tar-gz/?wpdmdl=13571&refresh=5cb739d6d3ef21555511766 && tar zxvf hdf5-1.10.5.tar.gz && cd hdf5-1.10.5 && ./configure CC=mpicc CXX=mpic++ F77=mpifort FC=mpifort --enable-fortran --enable-parallel && make && make install && cd .. && rm -rf hdf5.1.10.5
---> Running in 063bb14cf47c
--2019-04-18 18:28:10-- https://www.hdfgroup.org/package/hdf5-1-10-5-tar-gz/?wpdmdl=13571
Resolving www.hdfgroup.org (www.hdfgroup.org)...
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Removing intermediate container 063bb14cf47c
The command '/bin/sh -c wget -O hdf5-1.10.5.tar.gz --no-check-certificate https://www.hdfgroup.org/package/hdf5-1-10-5-tar-gz/?wpdmdl=13571&refresh=5cb739d6d3ef21555511766 && tar zxvf hdf5-1.10.5.tar.gz && cd hdf5-1.10.5 && ./configure CC=mpicc CXX=mpic++ F77=mpifort FC=mpifort --enable-fortran --enable-parallel && make && make install && cd .. && rm -rf hdf5.1.10.5' returned a non-zero code: 2

And I am not sure how to solve it...