pvm安装?

为当前最终发行版之前的所有版本提供支持
回复
ntrip
帖子: 4
注册时间: 2007-03-27 13:31
送出感谢: 0
接收感谢: 0

pvm安装?

#1

帖子 ntrip » 2007-03-27 14:00

在6.1下安装pvm3.4.4.tgz,make时报错如下,该怎么改呀,请大家帮帮忙吧:
make
./lib/aimk -here -f ./conf/`./lib/pvmtmparch`.def -f ./Makefile.aimk default
making in . for LINUX
make[1]: Entering directory `/home/lsp/pvm3'
building in src
cd src; ../lib/aimk CC=cc F77=f77 install
making in LINUX/ for LINUX
make[2]: Entering directory `/home/lsp/pvm3/src/LINUX'
mkdir ../../lib/LINUX
cc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"LINUX\" -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../src/ddpro.c
../../src/ddpro.c:358:23: error: sys/types.h: No such file or directory
../../src/ddpro.c:365:20: error: endian.h: No such file or directory
../../src/ddpro.c:375:23: error: rpc/types.h: No such file or directory
../../src/ddpro.c:376:21: error: rpc/xdr.h: No such file or directory
../../src/ddpro.c:386:22: error: sys/time.h: No such file or directory
../../src/ddpro.c:387:24: error: sys/socket.h: No such file or directory
../../src/ddpro.c:388:24: error: netinet/in.h: No such file or directory
../../src/ddpro.c:389:19: error: netdb.h: No such file or directory
../../src/ddpro.c:395:21: error: strings.h: No such file or directory
../../src/ddpro.c:398:19: error: errno.h: No such file or directory
../../src/ddpro.c:399:19: error: stdio.h: No such file or directory
In file included from ../../src/ddpro.c:401:
../../include/pvm3.h:611: warning: 鈥榮truct timeval鈥?declared inside parameter list
../../include/pvm3.h:611: warning: its scope is only this definition or declaration, which is probably not what you want
../../include/pvm3.h:696: warning: 鈥榮truct timeval鈥?declared inside parameter list
In file included from ../../src/ddpro.c:404:
../../src/host.h:92: error: field 鈥榟d_sad鈥?has incomplete type
../../src/host.h:100: error: field 鈥榟d_rtt鈥?has incomplete type
In file included from ../../src/ddpro.c:405:
../../src/pmsg.h:116: error: expected specifier-qualifier-list before 鈥榅DR鈥?In file included from ../../src/ddpro.c:407:
../../src/task.h:125: error: field 鈥榯_sad鈥?has incomplete type
../../src/task.h:145: error: field 鈥榯_utime鈥?has incomplete type
../../src/task.h:146: error: field 鈥榯_stime鈥?has incomplete type
In file included from ../../src/ddpro.c:415:
../../include/pvmtev.h:426: error: field 鈥榤ark鈥?has incomplete type
../../include/pvmtev.h:427: error: field 鈥榯otal鈥?has incomplete type
../../src/ddpro.c: In function 鈥榓ddhosts鈥?
../../src/ddpro.c:871: warning: incompatible implicit declaration of built-in function 鈥榤alloc鈥?../../src/ddpro.c:874: warning: incompatible implicit declaration of built-in function 鈥榖zero鈥?../../src/ddpro.c:929: warning: assignment makes pointer from integer without a cast
../../src/ddpro.c:930: warning: incompatible implicit declaration of built-in function 鈥榖copy鈥?../../src/ddpro.c:930: error: dereferencing pointer to incomplete type
../../src/ddpro.c:930: error: invalid application of 鈥榮izeof鈥?to incomplete type 鈥榮truct in_addr鈥?
../../src/ddpro.c:1019: warning: incompatible implicit declaration of built-in function 鈥榮trlen鈥?../../src/ddpro.c:1023: warning: incompatible implicit declaration of built-in function 鈥榮printf鈥?../../src/ddpro.c:1027: warning: incompatible implicit declaration of built-in function 鈥榮trcpy鈥?../../src/ddpro.c:1027: warning: incompatible implicit declaration of built-in function 鈥榮trlen鈥?../../src/ddpro.c:1040: warning: incompatible implicit declaration of built-in function 鈥榮printf鈥?../../src/ddpro.c: In function 鈥榚xectasks鈥?
../../src/ddpro.c:1383: error: storage size of 鈥榥ow鈥?isn鈥檛 known
../../src/ddpro.c:1390: warning: incompatible implicit declaration of built-in function 鈥榤alloc鈥?../../src/ddpro.c:1391: warning: incompatible implicit declaration of built-in function 鈥榖zero鈥?../../src/ddpro.c:1459: warning: incompatible implicit declaration of built-in function 鈥榮trlen鈥?../../src/ddpro.c:1460: warning: incompatible implicit declaration of built-in function 鈥榮trcpy鈥?../../src/ddpro.c:1465: warning: incompatible implicit declaration of built-in function 鈥榮printf鈥?../../src/ddpro.c:1484: error: 鈥楴ULL鈥?undeclared (first use in this function)
../../src/ddpro.c:1484: error: (Each undeclared identifier is reported only once
../../src/ddpro.c:1484: error: for each function it appears in.)
../../src/ddpro.c: In function 鈥榙m_slconf鈥?
../../src/ddpro.c:1995: warning: incompatible implicit declaration of built-in function 鈥榮scanf鈥?../../src/ddpro.c:2009: warning: incompatible implicit declaration of built-in function 鈥榖copy鈥?../../src/ddpro.c: In function 鈥榮tartack鈥?
../../src/ddpro.c:2100: warning: incompatible implicit declaration of built-in function 鈥榮trcpy鈥?../../src/ddpro.c:2100: warning: incompatible implicit declaration of built-in function 鈥榤alloc鈥?../../src/ddpro.c:2100: warning: incompatible implicit declaration of built-in function 鈥榮trlen鈥?../../src/ddpro.c:2205: warning: incompatible implicit declaration of built-in function 鈥榮printf鈥?../../src/ddpro.c:2210: warning: incompatible implicit declaration of built-in function 鈥榮printf鈥?../../src/ddpro.c: In function 鈥榙m_taskout鈥?
../../src/ddpro.c:2683: warning: incompatible implicit declaration of built-in function 鈥榮printf鈥?../../src/ddpro.c:2684: warning: incompatible implicit declaration of built-in function 鈥榮trlen鈥?../../src/ddpro.c:2689: warning: incompatible implicit declaration of built-in function 鈥榖copy鈥?../../src/ddpro.c: In function 鈥榙m_mca鈥?
../../src/ddpro.c:2808: warning: incompatible implicit declaration of built-in function 鈥榤alloc鈥?../../src/ddpro.c: In function 鈥榙m_db鈥?
../../src/ddpro.c:3001: error: 鈥楴ULL鈥?undeclared (first use in this function)
../../src/ddpro.c:3058: warning: incompatible implicit declaration of built-in function 鈥榤alloc鈥?../../src/ddpro.c: In function 鈥榙m_hostsync鈥?
../../src/ddpro.c:3301: error: storage size of 鈥榥ow鈥?isn鈥檛 known
../../src/ddpro.c: In function 鈥榤ca_new鈥?
../../src/ddpro.c:3356: warning: incompatible implicit declaration of built-in function 鈥榤alloc鈥?make[2]: *** [ddpro.o] 閿欒 1
make[2]: Leaving directory `/home/lsp/pvm3/src/LINUX'
make[1]: *** 閿欒 2
make[1]: Leaving directory `/home/lsp/pvm3'
make: *** [default] 閿欒 2
binsir543
帖子: 180
注册时间: 2007-03-22 2:04
送出感谢: 0
接收感谢: 0

#2

帖子 binsir543 » 2007-03-27 15:49

没sudo吧
ntrip
帖子: 4
注册时间: 2007-03-27 13:31
送出感谢: 0
接收感谢: 0

#3

帖子 ntrip » 2007-03-27 16:24

sudo 了,一样。
binsir543
帖子: 180
注册时间: 2007-03-22 2:04
送出感谢: 0
接收感谢: 0

#4

帖子 binsir543 » 2007-03-27 16:34

sudo tar xfvz xxxxx.tgz -C /
ntrip
帖子: 4
注册时间: 2007-03-27 13:31
送出感谢: 0
接收感谢: 0

#5

帖子 ntrip » 2007-03-27 16:56

还是一样的报错。我要崩溃了。弄一天了也装不上。请教个问题,如果要让一并行程序同时可以用单机的2个cpu,是不是安装pvm然后在$下执行pvm,再运行此程序就可以了?谢谢你!!!
ntrip
帖子: 4
注册时间: 2007-03-27 13:31
送出感谢: 0
接收感谢: 0

#6

帖子 ntrip » 2007-03-28 9:41

binsir543还在吗?还有其他人知道吗?教教我吧,please!
binsir543
帖子: 180
注册时间: 2007-03-22 2:04
送出感谢: 0
接收感谢: 0

#7

帖子 binsir543 » 2007-03-28 11:47

please wait a moment ,i 'll see it for you this afternoon,there is a file i have just copied from a web,may be it works?

PVM的安装
PVM是免费的软件,一般用户可以从网上下载它的源码。这儿我们主要介绍PVM的PVM3.4.4版本。PVM3.4.4是一个打包后并压缩的文件,其文件名是pvm3.4.4.tgz。可以将文件解包后,编译链接就可以了。我们将PVM安装在一个固定的目录下:/home/parallel
1. 下载pvm3.4.4.tgz
http://www.netlib.org/pvm3/index.html
2. 将PVM源程序放在用户目录下(如:/home/parallel)
3. 将源程序解包
tar xzvf pvm3.4.4.tgz
解包后在用户目录下生成一个pvm3的子目录,用户将在/home/parallel目录下看到一个叫pvm3的目录,它包含以下子目录:
bin/ARCH PVM用户的可执行程序
conf 对所有的体系结构的配置文件
console PVM控制台的源码
doc 各种文档
examples PVM示例程序的源码
gexamples 其他示例程序 主要针对组
hoster 一个示例程序"hoster"
include PVM的头文件
lib 系统的可执行脚本
lib/ARCH 可执行程序
libfpvm Fortran的库函数
man/man 在线帮助
misc 一些PVM示例和应用
patches 补丁
pvmgs libgpvm的源码和组域名
src libpvm库和pvmd的源码
src/ARCH 对一些专门的机器的源码
tasker 一个tasker示例程序
xep 一个X-Window示例程序
4.设置环境变量,主要是PVM_ROOT和PVM_ARCH的设置,在/etc/bashrc文件中添加 (这是很重要的一步)
PVM_ROOT=/home/parallel
Export PVM_ROOT
PVM_ARCH=LINUX //主要是应为在配置文件中没有这句话造成的
Export PVM_ARCH
PATH=$PATH:$PVM_ROOT/lib/$PVM_ARCH:$PVM_ROOT/lib:$PVM_ROOT/bin/$PVM_ARCH
Export PATH
MANPATH=$MANPATH:$PVM_ROOT/man
Export MANPATH
5.编译链接生成PVM的系统程序及库函数,转到/home/parallel/PVM3目录,执行
make
6.文件配置,允许远程访问 (rsh和ssh均可,一般来说rsh配置检点一些)
编写/.rhosts文件
每行内容为”远程主机名 允许登录的用户名”
修改/etc/hosts文件
每行内容为”远程主机IP 远程主机名”
至此就可以启动PVM并且将所有的机器添加近来组成一个简易的集群了。
回复

回到 “老旧版本支持”