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.

本文介绍了一款名为Starman的工具,它能够简化NetCDF库及其依赖项(如zlib和hdf5)的安装过程。通过Starman,用户可以使用一条命令完成安装,并且该工具还包含了气象学研究所需的其他软件,例如cdo。文中还记录了安装过程中遇到的问题及解决方案。
最低0.47元/天 解锁文章
1124





