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

博文

how to install ioapi with Linux2_x86

已有 8609 次阅读 2012-11-9 02:37 |系统分类:科研笔记|关键词:学者| Download

Makefile

Makeinclude.Linux2_x86


Before you want to install ioapi , especially you want to couple the ioapi, you should install PVM3
http://www.netlib.org/pvm3/
1 install pvm3
(1)tar -zxvf pvm*.tar.gz
(2) cd pvm3
(3)csh   //use c-shell
(4) setenv PVM_ROOT  /home/wangxun/Dowloads/pvm3      // where the source of the pvm3
(5) make
(6) setenv PVM_ARCH LINUX
(7) setenv  BIN Linux2_x86
2 install ioapi
(1) Download the code from http://www.baronams.com/products/ioapi/AVAIL.html#v31
(2) mkdir /home/wangxun/ioapi
(3) cd  /home/wangxun/ioapi
(4) mkdir lib
(5) mkdir bin
(6) cd /home/wangxun/Dowloads
(7) mkdir ioapi
(8) cp ioapi*.tar.gz ioapi
(10) cd ioapi
(11) tar -zxvf  ioapi*.tar.gz
(12) vim Makefile  as foolowing:                          (also can see the attachment  of my Makefile)
BASEDIR    = /home/wangxun/Downloads/ioapi          // the source of ioapi
INSTALL    = /home/wangxun/ioapi                // where you want to install
LIBINST    = $(INSTALL)/lib                     // where you install the ioapi's lib
BININST    = $(INSTALL)/bin                     // where you install the ioapi's bin
CPLMODE    = cpl               // 'cpl' means you want to couple the ioapi , you should install PVM3 fisrt                                                           // and indicate the PATH of PVM3
IOAPIDEFS  = -DIOAPICPL
PVMINCL    = $(PVM_ROOT)/conf/$(PVM_ARCH).def               //the path of PVM
(13) cd ioapi
(14) vim Makeinclude.Linux2_x86
(15) replace the "MFLAGS    =  -m486 -malign-double "  with     "MFLAGS    =  -mtune=i686 -malign-double "
(16) replace "  PVM_ARCH= LINUXI386" with "PVM_ARCH=LINUX"
(16) make configure
(17) make
(18) make install
(19) you will get Linux2_x86 file which contains library and binrary


https://m.sciencenet.cn/blog-714229-630665.html

上一篇:run the wrf +sst
下一篇:how to install CMAQ-5.0.1-- a installing guide

0

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

数据加载中...

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

GMT+8, 2024-5-23 18:57

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部