1.解压缩源文件
#tar -xzvf openpbs-2.3.16.tar.gz
假设解压的文件夹名字为:OpenPBS_2.3.16
2.备份(#cp config.sub config.sub.bak)后,
修改.../OpenPBS_2.3.26/buildutils/config.sub
a).第212行,
#Recognize the basic CPU types with company name.
vax-* | tahoe-* | i[3456]86-* | i860-* | ....
改为
vax-* | tahoe-* | i[3456]86-* | x86_64-* | i860-* | ....
b).第229行
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
在下面增加
i*86 | x86_64)
basic_machine=$basic_machine-pc
;;
3.修改.../OpenPBS_2.3.16/buildutils/makedepend-sh
第576行
eval $CPP $arg_cc $d/$s $errout | \
sed -n -e "s;^\# [0-9][0-9 ]*\"\(.*\)\";$f: \1;p" | \
grep -v "$s\$" | \
sed -e 's;\([^ :]*: [^ ]*\).*;\1;' \
>> $TMP
改为
eval $CPP $arg_cc $d/$s $errout | \
sed -n -e "s;^\# [0-9][0-9 ]*\"\(.*\)\";$f: \1;p" | \
grep -v "$s\$" | \
grep -v ">$" | \
sed -e 's;\([^ :]*: [^ ]*\).*;\1;' \
>> $TMP
即增加一新行:grep -v ">$" | \
4.修改.../OpenPBS_2.3.16/src/lib/Liblog/pbs_log.c
第92行
#include <pbs_config.h> /* the master config generated by configure */
在下面增加一行
#include <errno.h>
5.修改.../OpenPBS_2.3.16/src/server/svr_connect.c
第102行
#include <pbs_config.h> /* the master config generated by configure */
在下面增加一行
#include <errno.h>
6.编译安装:
服务器端:
a).
#cd .../OpenPBS_2.3.16
#make clean
#./configure --set-server_home=/var/spool/pbs
#make
#make install
b).
#cd /usr/local/pbs/sbin
#chmod go+rx /usr/local/pbs/sbin/pbs_mom
#chmod go+rx /usr/local/pbs/sbin/pbs_sched
#chmod go+rx /usr/local/pbs/sbin/pbs_server
c).
#vi /etc/pbs.conf,将下面内容加入
--------------------------------------
#!/bin/sh
pbs_home=/var/spool/pbs
pbs_exec=/usr/local
start_server=1
start_sched=1
start_mom=1
--------------------------------------
d).
#vi /etc/init.d/openpbs
内容与rpm安装openpbs时产生的完全一样
e).
#vi /var/spool/pbs/server_priv/nodes
加入所有计算节点名
f).
其它的配置与rpm安装openpbs时完全一样
客户端:
a).
#cd .../OpenPBS_2.3.16
#make clean
#./configure --disable-gui --set-server-home=/var/spool/pbs --disable-server --set-default-server=node00 --set-sched=no
#make
#make install
b).
#cd /usr/local/sbin
#chmod go+rx /usr/local/pbs/sbin/pbs_mom
c).
#vi /etc/pbs.conf,将下面内容加入
--------------------------------------
#!/bin/sh
pbs_home=/var/spool/pbs
pbs_exec=/usr/local
start_server=0
start_sched=0
start_mom=1
--------------------------------------
d).
#vi /etc/init.d/pbs_mom
内容与rpm安装openpbs时产生的完全一样
e).
#将config拷贝到/var/spool/pbs/mom_priv,并修改,方法与rpm安装时完全一样
f).
其它的配置与rpm安装openpbs时完全一样
本文地址:http://com.8s8s.com/it/it35790.htm