netcdf庫需要很多額外庫的安裝,例如zlib,hdf5之類的,安裝十分繁瑣,starman是董理老師開發的一個傻瓜式安裝netcdf庫的工具,除了netcdf,其中還包含了很多氣象學研究需要用到的軟體,例如cdo等,一句starman install netcdf就可以一步到位,starman的具體安裝和操作可見:一個鏈接
安裝進行到hdf5的時候出現問題
==> make check
[Error]: Failed to run make check ! Check logs:
/tmp/starman/stdout.410
/tmp/starman/stderr.410
在make check的時候出現問題,打開error的log后,發現:
make[4]: *** [dt_arith.chkexe_] Error 1
make[3]: *** [build-check-s] Error 2
make[2]: *** [test] Error 2
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
解決辦法
查詢一些說法得知可能是因為make check的時候權限不夠,1
先去/tmp/starman/hdf5_gcc_7.5.0下make clean,
運行starman install netcdf --skip-test,即忽略make check等測驗的命令,
關于starman的一些要點
- starman下載的包,放在/tmp/starman里面,也是在該目錄下,軟體進行make && make install,
- 各個軟體最后的安裝目錄在~/starman/gcc_7.5.0下,
- 安裝詳情
[Notice]: Initialize history database at /home/sing/.starman/history.db.
[Notice]: Downloading http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz ...
######################################################################## 100.0%
[Notice]: Install package m4@1.4.18 ...
==> ./configure --prefix=/home/sing/software/starman//common/Packages/m4/1.4.18
==> make
==> make install
[Notice]: Package m4@1.4.18 is installed at /home/sing/software/starman//common/Packages/m4/1.4.18.
[Notice]: Downloading https://support.hdfgroup.org/ftp/lib-external/szip/2.1.1/src/szip-2.1.1.tar.gz ...
######################################################################## 100.0%
[Notice]: Install package szip@2.1.1 ...
==> ./configure --prefix=/home/sing/software/starman//gcc_7.5.0/Packages/szip/2.
==> make install
[Notice]: Package szip@2.1.1 is installed at /home/sing/software/starman//gcc_7.5.0/Packages/szip/2.1.1.
[Notice]: Downloading https://zlib.net/zlib-1.2.11.tar.gz ...
######################################################################## 100.0%
[Notice]: Install package zlib@1.2.11 ...
==> ./configure --prefix=/home/sing/software/starman//gcc_7.5.0/Packages/zlib/1.
==> make install
[Notice]: Package zlib@1.2.11 is installed at /home/sing/software/starman//gcc_7.5.0/Packages/zlib/1.2.11.
[Notice]: Downloading https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.bz2 ...
######################################################################## 100.0%
[Notice]: Install package hdf5@1.10.6 ...
==> ./configure --prefix=/home/sing/software/starman//gcc_7.5.0/Packages/hdf5/1.
==> make
==> make install
[Notice]: Package hdf5@1.10.6 is installed at /home/sing/software/starman//gcc_7.5.0/Packages/hdf5/1.10.6.
[Notice]: Install package netcdf-fortran@4.5.2 ...
==> ./configure --prefix=/home/sing/software/starman//gcc_7.5.0/Packages/netcdf/
==> make
==> make check
==> make install
[Notice]: Package netcdf-fortran@4.5.2 is installed at /home/sing/software/starman//gcc_7.5.0/Packages/netcdf/4.7.2.
https://forum.hdfgroup.org/t/h5repack-error-make-check/4205/3 ??
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/229958.html
標籤:其他
