UML软件工程组织

 

 

ClearCase for Linux安装攻略
 
作者:不详 来源:网络
 

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

CODE:

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

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

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

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

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

6,执行安装
    ./install_release

CODE:

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

ClearCase
MultiSite
ClearCase ClearDDTS Integration
ClearCase ClearQuest Integration
ClearCase Web Interface Server
ClearCase Attache

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


The following installation methods are available:

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

Type "Help" or "h" for expanded descriptions

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

Please select the installation method by number.


Method of installation>;>; 1

The following installation operations or models are available:

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

Type "Help" or "h" for expanded descriptions

Type "Quit" or "q" to exit

Please select the installation type by number.


Model of installation>;>; 2

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

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

1 : ClearQuest Integration with ClearCase
2 : ClearCase MultiSite Full Function Installation
3 : ClearCase Attache Helper
4 : ClearCase Server-only Installation
5 : ClearCase MultiSite Shipping Server-only Installation
6 : ClearCase Web Interface Server
7 : ClearCase Minimal Developer Installation
8 : ClearCase Full Function Installation
9 : ClearDDTS Integration with ClearCase
a : Select all
f : Finish selection
x : Toggle expanded descriptions
r : Reset selections
q : Quit

Selection number(s)>;>; 8

Next selection, '*' denotes a selected component

1 : ClearQuest Integration with ClearCase
2 : ClearCase MultiSite Full Function Installation
3 : ClearCase Attache Helper
4 : ClearCase Server-only Installation
5 : ClearCase MultiSite Shipping Server-only Installation
6 : ClearCase Web Interface Server
7 : ClearCase Minimal Developer Installation
* 8 : ClearCase Full Function Installation
9 : ClearDDTS Integration with ClearCase
a : Select all
f : Finish selection
x : Toggle expanded descriptions
r : Reset selections
q : Quit

Selection number(s)>;>; f

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

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

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

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

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

----
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

CODE:

/usr/atria/bin/cleartool -ver
ClearCase version 2002.05.00 (Wed Jan 30 13:23:18 EST 2002)
clearcase_p2002.05.00-32 (Thu Jan 08 15:21:13 EST 2004)
clearcase_p2002.05.00-31 (Wed Jan 07 11:13:28 EST 2004)
@(#) MVFS version 2002.05.00 (Mon Nov 3 16:26:41 EST 2003)
cleartool      2002.05.00+ (Thu Dec 4 15:51:37 EST 2003)
db_server      2002.05.00+ (Sun Nov 2 05:19:21 EST 2003)
VOB database schema version: 53

有MVFS version 2002.05.00 显示。

至此安装成功。

 

组织简介 | 联系我们 |   Copyright 2002 ®  UML软件工程组织 京ICP备10020922号

京公海网安备110108001071号