cwjwang的个人博客分享 http://blog.sciencenet.cn/u/cwjwang

博文

How to quickly install netcdf---discussed again

已有 3919 次阅读 2015-1-29 00:58 |系统分类:科研笔记| following, should

A most easy way as following:
(1) git clone git://git.as.harvard.edu/bmy/GEOS-Chem-Libraries
(2) revised the install.h in the downloaded file
(3) the final install.h should be like the attachment
(4) ./install.h
(5) Noting:
        Beauce all libraries are staticly installed, So when you complie the script , lingking by yourself.  when compiling the script, i.g. a "preparation_for_Hg.F90", noting the oder of libraries.
gfortran  -o run.exe preparation_for_Hg.F90 -L /usr/wangxun/nature_flux/lib/opt/gfortran/lib -lnetcdff -lnetcdf  -lhdf5_hl -lhdf5  -lz  -lm  -I /usr/wangxun/nature_flux/lib/opt/gfortran/include/

Noting: you also can exlcude the static compiling in install netcdf.


https://blog.sciencenet.cn/blog-714229-863639.html

上一篇:nco adrress
收藏 IP: 140.158.48.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-11-20 19:47

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部