免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2369 | 回复: 0

ClearCase for Linux安装攻略 [复制链接]

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
发表于 2004-02-26 10:17 |显示全部楼层
Clearcase是Rational公司(2003年被IBM收购)的一款重量级的软件配置管理(SCM Software Configuration Managemen)工具。说起SCM大家可能有点陌生,但是提起版本控制,Check In,Check Out操作,大家都会觉得再熟悉不过了。当然不同于CVS和VSS,Clearcase涵盖的范围包括:版本控制、建立管理、工作空间管理和过程控制。从最初的软件配置计划,到配置项的确立,从变更控制到版本控制,它贯穿于整个软件生命周期。

因为项目需要,我在搭建一个支持Windows,Unix的混合ClearCase环境,查看了一些文档,现把一些收获分享给大家。安装的平台是Redhat9。

ClearCase支持现有的绝大多数操作系统,从
http://www-1.ibm.com/support/docview.wss?uid=swg21136950
中可以获得ClearCase对操作系统的支持信息。
对Linux,ClearCase已经支持到最新的Red Hat Enterprise Linux 3.0


前提:
1,下载Clearcase Clien 5.0 for Redhat Linux
http://www7b.software.ibm.com/dl/RATL-CLEARCASE-UPG/RATL-CLEARCASE-UPG-p
下载Rational ClearCase V2002.05.00版本,文件是C502JNA.tar.Z(需要IBM 的注册帐号)。
2,下载最新的Patch
http://www.rational.com 选择"Software support" + "Upgrades" + "IBM Rational downloads and licensing center" ) 选择 "Available Patches and service releases" 输入 "clearcase redhat" 。根据上面的操作系统支持列表,选择你安装平台所需的Patch。这里我们下载最新两个Patch:p2002.05.00-31,p2002.05.00-32。
3,安装 compat-db-xxx包(rpm -ihv compat-db-3.3.11-4.rpm)。
4,安装Kernel Source。

安装:
1,准备目录结构:
        mkdir /lib/modules/fs
        mkdir /opt/Clearcase
        把下载的 C502JNA.tar.Z,clearcase_p2002.05.00-31.rhat_x86.tar,clearcase_p2002.05.00-32.rhat_x86.tar拷贝到/opt/Clearcase目录下
2,解压缩软件
        uncompress C502JNA.tar.Z
        tar -xf C502JNA.tar
        会在当前目录下建立v5.0 目录
3,解压缩Patch
        gzip -d clearcase_p2002.05.00-31.rhat_x86.tar
        mkdir ./v5.0/rhat_x86/patches
        mv clearcase_p2002.05.00-31.rhat_x86.tar ./v5.0/rhat_x86/patches
        cd ./v5.0/rhat_x86/patches
        tar xf clearcase_p2002.05.00-31.rhat_x86.tar
        对于clearcase_p2002.05.00-32.rhat_x86.tar执行同样的操作
4,Apply Patch
        以root登陆,
        cd clearcase_p2002.05.00-31/install
        ./apply_patch
        cd ../../clearcase_p2002.05.00-32/install
        ./apply_path
5,执行Site Preparaion
        cd /opt/Clearcase/v5.0/rhat_x86/install
        ./site_prep

  1. Updating release area '/opt/Clearcase/v5.0/rhat_x86'

  2.         For any of the queries that follow, help is available
  3.         by entering 'help', 'h' or '?' at the prompt.


  4.          The host name of the ClearCase license host must match the host
  5.          name returned by the '/bin/uname -n' command on the license host and
  6.          it must be resolvable by the 'gethostbyname(3N)' function.

  7. Site default ClearCase license host: [Unknown] 此处输入License服务器的机器名或IP地址

  8. Site default ClearCase registry host: [Unknown] 此上输入Clearcase服务器的机器名或IP地址
  9. Site default ClearCase registry data backup host: [Unknown]
  10. Site default ClearCase registry region: [Unknown] 输入Region名
  11. Would you like to configure (enable for some host(s)) setuid operation [no]
  12. Would you like ClearCase Remote Administration to be enabled on clients [no]
复制代码


6,执行安装
        ./install_release

  1. ./install_release
  2. This release area contains the following Atria product(s):

  3.         ClearCase
  4.         MultiSite
  5.         ClearCase ClearDDTS Integration
  6.         ClearCase ClearQuest Integration
  7.         ClearCase Web Interface Server
  8.         ClearCase Attache

  9. A transcript of this installation will be initially written
  10. to /tmp/Atria_install.031120.18:59.
  11. After a successful installation, the transcript will be located
  12. at /var/adm/atria/log/Atria_install.031120.18:59.


  13. The following installation methods are available:

  14. 1. Local Install:            Install occurs on the local host.
  15. 2. Remote Install:           Install occurs on a single remote host.
  16. 3. Multiple Remote Installs: Install occurs on a set of remote hosts.
  17. 4. Local Deinstall:          Deinstall occurs on the local host.

  18. Type "Help" or "h" for expanded descriptions

  19. Type "Quit" or "q" to exit the installation

  20. Please select the installation method by number.


  21. Method of installation>;>; 1

  22. The following installation operations or models are available:

  23. 1. Standard:  Regular installation, allowing links to this release area.
  24. 2. Full-copy: Regular installation, with no links to this release area.
  25. 3. Mounted:   Host install via mounted or pre-populated /usr/atria or ATRIAHOME.
  26. 4. Link-only: Host install via a symbolic link to this release-area.
  27. 5. Deinstall: Deinstall software from the local installed host.

  28. Type "Help" or "h" for expanded descriptions

  29. Type "Quit" or "q" to exit

  30. Please select the installation type by number.


  31. Model of installation>;>; 2

  32. Specify directory to be installed with ClearCase, MultiSite, ClearCase ClearDDTS Integration, ClearCase ClearQuest Integration, ClearCase Web Interface Server,
  33. ClearCase Attache
  34. [/usr/atria]:

  35. Pathname to the network-wide release directory
  36.     (used as target of symbolic links)
  37. [/opt/Clearcase/v5.0/rhat_x86]:

  38.   1 : ClearQuest Integration with ClearCase
  39.   2 : ClearCase MultiSite Full Function Installation
  40.   3 : ClearCase Attache Helper
  41.   4 : ClearCase Server-only Installation
  42.   5 : ClearCase MultiSite Shipping Server-only Installation
  43.   6 : ClearCase Web Interface Server
  44.   7 : ClearCase Minimal Developer Installation
  45.   8 : ClearCase Full Function Installation
  46.   9 : ClearDDTS Integration with ClearCase
  47.   a : Select all
  48.   f : Finish selection
  49.   x : Toggle expanded descriptions
  50.   r : Reset selections
  51.   q : Quit

  52. Selection number(s)>;>; 8

  53. Next selection, '*' denotes a selected component

  54.   1 : ClearQuest Integration with ClearCase
  55.   2 : ClearCase MultiSite Full Function Installation
  56.   3 : ClearCase Attache Helper
  57.   4 : ClearCase Server-only Installation
  58.   5 : ClearCase MultiSite Shipping Server-only Installation
  59.   6 : ClearCase Web Interface Server
  60.   7 : ClearCase Minimal Developer Installation
  61. * 8 : ClearCase Full Function Installation
  62.   9 : ClearDDTS Integration with ClearCase
  63.   a : Select all
  64.   f : Finish selection
  65.   x : Toggle expanded descriptions
  66.   r : Reset selections
  67.   q : Quit

  68. Selection number(s)>;>; f

  69. Atria License Server Host[node-name-of-license-server]:
  70. ClearCase Registry Server Host[node-name-of-clearcase-server]:
  71. ClearCase Registry Backup Host(s)[Unknown]:
  72. ClearCase Registry Region[unix]:

  73. Do you want to relink the MVFS when install is
  74. complete (yes, no, quit, help)[no]:

  75. Continue installation?(yes, no, quit)[yes]:

  76. /lib/modules/fs/mvfs.o:
  77. Hint: You are trying to load a module without a GPL compatible license
  78.       and it has unresolved symbols.  Contact the module supplier for
  79.       assistance, only they can help you.

  80. Using /lib/modules/fs/mvfs.o
  81. /usr/atria/etc/atria_start: Loading MVFS failed
  82. ---- Please review /var/log/messages for information on the problem.
  83. ---- You may need to rebuild your kernel, rebuild your mvfs module,
  84. ---- and reboot your system. Information on how to do this can be found in
  85. ---- your Release Notes and file /var/adm/atria/mvfs/README.txt.

  86.           ----
  87.           End of command output.
复制代码


7,编译mvfs模块
提示Loading MVFS failed,我们需要重新编译mvfs.o文件
        cd /usr/src/linux-2.4.20-8
        make mrproper
        make oldconfig
        make dep
        cd ../
        ln -s /usr/src/linux-2.4.20-8 linux
        cd /var/adm/atria/mvfs/linux_ia32_2420/
        make
/lib/modules/fs/mvfs.o会被更新。

8,验证安装
执行/usr/atria/etc/atria_start stop
    /usr/atria/etc/atria_start start
或者
    /sbin/service atria stop
    /sbin/service atria start
启动ClearCase服务。
执行/usr/atria/bin/cleartool -ver
  1. /usr/atria/bin/cleartool -ver
  2. ClearCase version 2002.05.00 (Wed Jan 30 13:23:18 EST 2002)
  3. clearcase_p2002.05.00-32 (Thu Jan 08 15:21:13 EST 2004)
  4. clearcase_p2002.05.00-31 (Wed Jan 07 11:13:28 EST 2004)
  5. @(#) MVFS version 2002.05.00 (Mon Nov  3 16:26:41 EST 2003)
  6. cleartool                         2002.05.00+ (Thu Dec  4 15:51:37 EST 2003)
  7. db_server                         2002.05.00+ (Sun Nov  2 05:19:21 EST 2003)
  8. VOB database schema version: 53
复制代码

有MVFS version 2002.05.00 显示。
至此安装成功

参考文档:
http://www.yolinux.com/TUTORIALS/LinuxClearcaseClient.html
http://www-1.ibm.com/support/docview.wss?uid=swg21130015
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP