Skip to content
Snippets Groups Projects
Commit 3e4eddd6 authored by Coda Phillips's avatar Coda Phillips
Browse files

update hdf5 and netcdf

parent 9baf8d48
Branches master
No related tags found
No related merge requests found
FROM centos_gcc:7
FROM gitlab.ssec.wisc.edu:5555/cphillips/centos6_gcc_docker
WORKDIR /root/
COPY make_all.sh make_all.sh
......
#!/bin/bash
docker build -t netcdf_hdf:7 .
#docker build -t netcdf_hdf:7 .
docker build -t gitlab.ssec.wisc.edu:5555/cphillips/netcdf_hdf_docker .
#!/bin/bash
set -ex
wget https://support.hdfgroup.org/ftp/HDF/releases/HDF4.2.13/src/hdf-4.2.13.tar.bz2
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.20/src/hdf5-1.8.20.tar.bz2
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-4.7.1.tar.gz
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.5.1.tar.gz
wget https://hdf-wordpress-1.s3.amazonaws.com/wp-content/uploads/manual/HDF5/HDF5_1_12_3/src/hdf5-1.12.3.tar.gz
wget https://downloads.unidata.ucar.edu/netcdf-c/4.9.2/netcdf-c-4.9.2.tar.gz
wget https://downloads.unidata.ucar.edu/netcdf-fortran/4.6.1/netcdf-fortran-4.6.1.tar.gz
#!/bin/bash
set -ex
yum install -y libjpeg-turbo-static.x86_64 zlib-static.x86_64 subversion glibc-static wget bison flex
./download_src.sh
tar xf hdf-4.2.13.tar.bz2
tar xf hdf5-1.8.20.tar.bz2
tar xf netcdf-c-4.7.1.tar.gz
tar xf netcdf-fortran-4.5.1.tar.gz
tar xf hdf5-1.12.3.tar.gz
tar xf netcdf-c-4.9.2.tar.gz
tar xf netcdf-fortran-4.6.1.tar.gz
cd /root/hdf-4.2.13
export PREFIX=/root/hdf4
......@@ -13,19 +15,19 @@ export PREFIX=/root/hdf4
make
make install
cd /root/hdf5-1.8.20/
cd /root/hdf5-1.12.3/
export PREFIX=/root/hdf5
./configure --enable-static --prefix=/root/hdf5/ --enable-fortran2003 --enable-fortran
make
make install
cd /root/netcdf-c-4.7.1
cd /root/netcdf-c-4.9.2
export PREFIX=/root/netcdf
CFLAGS='-I/root/hdf5/include/' LDFLAGS='-L/root/hdf5/lib/' ./configure --prefix=/root/netcdf/ --enable-static --disable-dap
CFLAGS='-I/root/hdf5/include/' LDFLAGS='-L/root/hdf5/lib/' ./configure --prefix=/root/netcdf/ --enable-static --disable-dap --disable-libxml2 --disable-byterange
make
make install
cd /root/netcdf-fortran-4.5.1
cd /root/netcdf-fortran-4.6.1
LD_LIBRARY_PATH=/root/hdf5/lib/:/root/netcdf/lib/:$LD_LIBRARY_PATH CFLAGS='-I/root/hdf5/include/ -I/root/netcdf/include/' LDFLAGS='-L/root/hdf5/lib/ -L/root/netcdf/lib/' ./configure --prefix=/root/netcdf/ --enable-static
make
make install
......@@ -36,5 +38,5 @@ mkdir /root/lib/
ln -s /root/hdf4 /root/lib/hdf4_gcc
ln -s /root/hdf5 /root/lib/hdf5_gcc
ln -s /root/netcdf /root/lib/netcdf4_gcc
rm -rf hdf-4.2.13 hdf-4.2.13.tar.bz2 hdf5-1.8.20 install_clavrx_trunk_gfortran.sh netcdf-c-4.7.1 netcdf-c-4.7.1.tar.gz netcdf-fortran-4.5.1 netcdf-fortran-4.5.1.tar.gz hdf5-1.8.20.tar.bz2 anaconda-ks.cfg install.log install.log.syslog
rm -rf hdf-4.2.13 hdf-4.2.13.tar.bz2 hdf5-1.12.3 install_clavrx_trunk_gfortran.sh netcdf-c-4.9.2 netcdf-c-4.9.2.tar.gz netcdf-fortran-4.6.1 netcdf-fortran-4.6.1.tar.gz hdf5-1.12.3.tar.gz anaconda-ks.cfg install.log install.log.syslog
yum remove -y wget subversion
docker run -it --rm netcdf_hdf /bin/bash -l
docker run -it --rm gitlab.ssec.wisc.edu:5555/cphillips/netcdf_hdf_docker /bin/bash -l
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment