Anda di halaman 1dari 3

7/13/2019 Install/build IOAPI 3.

2_昏眼看日_新浪博客

加载中…

加载中...
http://blog.sina.com.cn/solarpvwatcher [订阅] [手机订阅]

首页 博文目录 图片 关于我

个人资料 正文 字体大小:大 中小
Install/build IOAPI 3.2 (2016-12-01 01:48:13) 转 载 ▼

IOAPI 3.2 is formally released this week. It is required for build the new smoke v4.0.

Overall, the new version is slightly easier to build.

Requirements:

昏眼看日 1. Assume hdf5, zlib, netcdf4.4 were successfully built, netcdf needs to be built with the same compiler.

微博
2. The intel compiler version here is v2013 (v13)

Steps:
加好友 发纸条
For no-coupling option only -nocpl
写留言 加关注
Assume base dir for installation is: /opt/ioapi32/install, and the target dir is: /opt/ioapi32

博客等级: 0a. create target dir (this is different from the "Linux2_x86_64ifort" dir inside installation source)
博客积分:0 mkdir -p /opt/ioapi32/Linux2_x86_64ifort
博客访问:96,235 0b. cd /opt/ioapi32
关注人气:51 0c. mkdircd install
获赠金笔:0 支 0d. move downloaded 'ioapi-3.2.tar.gz' to install
赠出金笔:0 支 0e. extract 'ioapi-3.2.tar.gz': tar xf ioapi-3.2.tar.gz
荣誉徽章:

$BIN is set in the Makefile, so no need to set and export in bash.

相关博文 1. Change Makefile (if there is no Makefile, copy Makefile.template to Makefile)


更多>> BIN = Linux2_x86_64ifort
BASEDIR = ${PWD}
INSTALL = /opt/ioapi32
LIBINST = $(INSTALL)/$(BIN)
BININST = $(INSTALL)/$(BIN)
CPLMODE = nocpl
IOAPIDEFS =
PVMINCL =
NCFLIBS = -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz

Note on the last line (linked libs): The linked lib order is very important. lnetcdff should be ahead of
lnetcdf, lhdf5_hl ahead of lhdf5. In short, the dependent libs should be put behind. hdf libs depend on
zlib, so zlib should be the last. netcdf libs depend on hdf libs, so netcdf libs should be ahead of hdf
libs.
推荐博文
blog.sina.com.cn/s/blog_905660420102wx1h.html 1/3
7/13/2019 Install/build IOAPI 3.2_昏眼看日_新浪博客
2. create 'Linux2_x86_64ifort' dir, which holds required libs.
2a mkdir Linux2_x86_64ifort
2b. copy netcdf libs
现代服饰也惊艳 中文网站上介绍 cp /opt/nc4.4_i13/lib/libnetcdf*.a Linux2_x86_64ifort
的纯贵妃 为零的小城 2c. copy hdf5 libs to Linux2_x86_64ifort - since ncdf is dynamically linked to hdf
cp /usr/local/hdf5/lib/libhdf5*.a Linux2_x86_64ifort
2d. copy zlib libs to Linux2_x86_64ifort
cp /opt/zlib-1.2.8/*.a Linux2_x86_64ifort
苏州红枫甲天下 登高俯瞰克罗地
亚岛城 3. configure -> essentially using sed to modify the Makefile in different dirs
make configure
The configuration in top-level Makefile will be put into other Makefiles (ioapi and m3tools) through
'sed'. There is no need to change the Makefile inside 'm3tools/'.
高原上最古朴的 偶遇侗族采茶妹
河湟风情 4. build ioapi lib and tool programs
查看更多>> make all

5. install: copy lib and tool programs to target dir


谁看过这篇博文 make install
ioapi lib and m3tools will be installed to '/opt/ioapi32/Linux2_x86_64ifort'.
暂无访客

6. optional: Add '/opt/ioapi32' to $PATH, so that all m3tools programs can be accessed.

Note: you can compile ioapi using another compiler, and the new build will be put in
'/opt/ioapi32/Linux2_x86_64pg' or 'Linux2_x86_64gfort' etc.

0
喜欢 赠金笔

分享:

阅读┊ 评论 ┊ 收藏 ┊转载 ┊ 喜欢 ▼ ┊打印┊举报/Report

前一篇:zlib 1.2.8, hdf5-1.8, netcdf4.4 installation
后一篇:巴巴罗萨后为什么日本没有进攻苏联?

评论 [发评论]

评论加载中,请稍候...

发评论

blog.sina.com.cn/s/blog_905660420102wx1h.html 2/3
7/13/2019 Install/build IOAPI 3.2_昏眼看日_新浪博客

评论并转载此博文

发评论

以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

< 前一篇 后一篇 >
zlib 1.2.8, hdf5-1.8, netcdf4.4 installation 巴巴罗萨后为什么日本没有进攻苏联?

新浪BLOG意见反馈留言板 电话:4000520066 提示音后按1键(按当地市话标准计费) 欢迎批评指正


新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 会员注册 | 产品答疑

Copyright © 1996 - 2018 SINA Corporation, All Rights Reserved


新浪公司 版权所有

blog.sina.com.cn/s/blog_905660420102wx1h.html 3/3

Anda mungkin juga menyukai