clearmake设置分布式编译环境

    man clearmake一下,

    找到

    -B bldhost-file
         Uses bldhost-file as the build hosts file for a parallel build.
         If you do not specify -B, clearmake uses the file
         .bldhost.$CCASE_HOST_TYPE in your home directory. When you use
         -B, you must also use -J or have the CCASE_CONC environment
         variable set. For more information, see the Building Software.

    于是去找"IBM Rational ClearCase Guide to Building Software"

     http://publib.boulder.ibm.com/infocenter/cchelp/v7r0m0/topic/com.ibm.rational.clearcase.books.cc_build_unix.doc/cc_build.pdf?bcsi_scan_1A1A15D532821566=qIHHBqqq5/ir22qCvOwCmksAAACek2tJ&bcsi_scan_filename=cc_build.pdf


     又找到

    Setting up trust relationships

    For parallel building to work correctly, the client host must be trusted by the build hosts (that is, remote login from the client host to the build hosts must work without a password being needed). You can set up this trust with .rhosts files on the hosts, or by having your system administrator set up general trust (for example, with /etc/hosts.equiv). To test remote login, execute the following command (substituting your ClearCase installation directory for ccase–home–dir):

ccase–home–dir/etc/rsh remote-hostname echo Good-to-use

     看了看,无非就是主服务器跟slave机器建立互信。需要在slave的主机上修改.rhost(+ 需要建立互信的用户名)和 /etc/hosts.equiv (需要建立互信的主机名列表,不写就会出现Permission denied

     好了,去主服务器上执行rsh slave的主机名 echo hello,结果Connection refused。

     执行了下netstat   -a   -n   |   grep   LISTEN
     发现 tcp 端口 514(rsh) 和 513(rlogin) 没有开。

     将/etc/xinetd.d/rsh 和/etc/xinetd.d/rlogin中disable修改成no,   并通过/etc/init.d/xinetd   restart重启后就OK了

     建立分布编译的最后一步就是在主服务器的HOME目录下,创建bldhost-file,内容格式可以去以上链接中找。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值