728x90
이번 포스팅은 hdf5입니다
먼저 코드 순서 입니다
cd $HOME/WRF/Downloads
tar -xvzf hdf5-1.10.5.tar.gz
cd hdf5-1.10.5
./configure --prefix=$DIR --with-zlib=$DIR --enable-hl --enable-fortran
make check
make install
압축 해제를 하면
lsh@DESKTOP-8N2HJ5V:~/WRF/Downloads$ tar -xvzf hdf5-1.10.5.tar.gz
hdf5-1.10.5/Makefile
hdf5-1.10.5/ACKNOWLEDGMENTS
hdf5-1.10.5/COPYING
hdf5-1.10.5/COPYING_LBNL_HDF5
hdf5-1.10.5/MANIFEST
hdf5-1.10.5/Makefile.dist
hdf5-1.10.5/Makefile.am
hdf5-1.10.5/README.txt
...
hdf5-1.10.5/tools/test/h5stat/Makefile.in
hdf5-1.10.5/tools/test/misc/Makefile.in
hdf5-1.10.5/tools/test/misc/vds/Makefile.in
hdf5-1.10.5/tools/test/perform/Makefile.in
역시 시작 부분하고 끝 부분입니다
hdf5의 경우는 zlib보다 많이 길게 출력됩니다
다음줄을 실행하면
lsh@DESKTOP-8N2HJ5V:~/WRF/Downloads/hdf5-1.10.5$ ./configure --prefix=$DIR --with-zlib=$DIR --enable-hl --enable-fortran
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
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
...
Features:
---------
Parallel HDF5: no
Parallel Filtered Dataset Writes: no
Large Parallel I/O: no
High-level library: yes
Threadsafety: no
Default API mapping: v110
With deprecated public symbols: yes
I/O filters (external): deflate(zlib)
MPE: no
Direct VFD: no
dmalloc: no
Packages w/ extra debug output: none
API tracing: no
Using memory checker: no
Memory allocation sanity checks: no
Function stack tracing: no
Strict file format checks: no
Optimization instrumentation: no
이렇게 출력이 됩니다
마지막에 features라는 부분이 나오면 됩니다
다음 make check는 여기에 담을수가 없습니다
make check를 실행하면 막 무언가가 엄청 올라오기 시작할겁니다
끝날 때 까지 기다리시면 됩니다
결과 부분을 사진으로 올려드리겠습니다
마지막 부분에 이렇게 있으면 성공입니다
make install도 너무 길어서 마지막 부분만 올려드리겠습니다
make[2]: Leaving directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/fortran/examples'
make[1]: Leaving directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/fortran'
make[1]: Entering directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/hl'
for d in examples fortran; do \
(cd $d && make install-examples) || exit 1; \
done
make[2]: Entering directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/hl/examples'
../../bin/mkdirs /home/lsh/WRF/Library/share/hdf5_examples/hl/c
+ /usr/bin/install -c ./ex_lite1.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_lite2.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_lite3.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ptExampleFL.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_image1.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_image2.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_01.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_02.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_03.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_04.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_05.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_06.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_07.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_08.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_09.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_10.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_11.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_table_12.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./ex_ds1.c /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./image24pixel.txt /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./image8.txt /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./pal_rgb.h /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c run-hlc-ex.sh /home/lsh/WRF/Library/share/hdf5_examples/hl/c/.
+ /usr/bin/install -c ./run-hl-ex.sh /home/lsh/WRF/Library/share/hdf5_examples/hl/.
make[2]: Leaving directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/hl/examples'
make[2]: Entering directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/hl/fortran'
make[3]: Entering directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/hl/fortran/examples'
../../../bin/mkdirs /home/lsh/WRF/Library/share/hdf5_examples/hl/fortran
+ /usr/bin/install -c ./exlite.f90 /home/lsh/WRF/Library/share/hdf5_examples/hl/fortran/.
+ /usr/bin/install -c ./ex_ds1.f90 /home/lsh/WRF/Library/share/hdf5_examples/hl/fortran/.
+ /usr/bin/install -c run-hlfortran-ex.sh /home/lsh/WRF/Library/share/hdf5_examples/hl/fortran/.
make[3]: Leaving directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/hl/fortran/examples'
make[2]: Leaving directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/hl/fortran'
make[1]: Leaving directory '/home/lsh/WRF/Downloads/hdf5-1.10.5/hl'
이렇게 나오면 됩니다
hdf5는 다음 netcdf를 설치하기 위해서 환경 변수를 선언해주고 가야합니다
export HDF5=$DIR
export LD_LIBRARY_PATH=$DIR/lib:$LD_LIBRARY_PATH
이렇게 실행해주시면 됩니다
다음 포스팅은 netcdf-c를 설치하겠습니다
728x90
'리눅스' 카테고리의 다른 글
LINUX : netCDF - fortran 설치하기 (2) | 2023.06.13 |
---|---|
LINUX : netCDF - C 설치하기 (0) | 2023.06.13 |
LINUX : zlib 설치하기 (0) | 2023.06.12 |
LINUX : WRF(Weather Research & Forecasting Model) 기본 설정 (0) | 2023.06.11 |
LINUX : Ubuntu에 anaconda3 설치 (0) | 2023.06.11 |