解决办法:利用starman安装netcdf库出现的问题

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的一些要点
  1. starman下载的包,放在/tmp/starman里面。也是在该目录下,软件进行make && make install。
  2. 各个软件最后的安装目录在~/starman/gcc_7.5.0下。
  3. 安装详情
[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.

  1. https://forum.hdfgroup.org/t/h5repack-error-make-check/4205/3 ↩︎

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值