SCMLife.com

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 5521|回复: 3

[转贴] Configuration requirements to run ClearCase on Ubuntu 10.04 Linux

[复制链接]
发表于 2011-6-8 13:50:21 | 显示全部楼层 |阅读模式
原文地址:https://www-304.ibm.com/support/docview.wss?uid=swg21462179
# Q/ k# c( l" f+ Q- h顺便鄙视下IBM的更新速度,android开发都如火如荼了,今年五月才搞定10.04,之后还有那么多更新版本,让android开发设计公司的scm情何以堪啊,是IBM逼迫我们去用svn/git的!哈哈。
1 R9 Y2 W; Z" J3 R' k. {& }
2 H/ |. [! b. U. T* i5 {
( x" j$ ^( e/ X+ W! H/ h, V( L% u) B, }, D8 x8 B
Question
How do you configure an Ubuntu 10.04 system in order to install IBM Rational ClearCase?
Cause[size=0.8em]
( o) @' p( ^! Z3 i7 c, W
ClearCase requires some system packages which are not available by default on the Ubuntu 10.04 system. The packages must be installed before you install and configure ClearCase.
0 o2 }+ }) X6 t# ?

5 D% J6 i2 c" V( f8 k7 p3 FAnswer[size=0.8em]
7 e1 D7 g' W! f' V, h- S. p" n7 ]  g
Note: This information is specific to the Ubuntu 10.04 LTS system.

1 f7 @0 a6 X7 {' \/ J* _
The set of packages that must be installed depends on the system architecture (i386 or x86_64) and on the Ubuntu version (Desktop or Server). Ubuntu documentation sometimes refers to the x86_64 platform as AMD64. For each of these configurations, use the following procedure to install the packages before installing ClearCase.
; g$ j  [) e; `3 y8 H' T
Note: In order to determine which Ubuntu system packages are currently installed on the system, use the command dpkg --get-selections to list all of the packages. You will not need to reinstall any of the packages listed here if they are already installed on the system in question.
4 I- O$ L+ b$ t- n! m7 ^( D

8 O4 P: X& o' p6 R
) P9 x( ?+ u- P8 d1 F) ?
Ubuntu 10.04 Desktop i386 (32-bit)

- `6 P5 A# I5 Z2 Y
  • libmotif3
  • linux-headers-* (see note above for confirming correct package)
  • libstdc++5
  • autofs
  • nfs-common
  • nfs-kernel-server
    7 L  N+ m; n2 a1 T
  {; I0 Y) }; Y" m6 u/ r# r' G6 Y
The linux-headers-* package name must match the actual running kernel type; for example linux-headers-generic, or linux-headers-virtual. linux-headers-generic is the default for the Desktop kernel. To check the type of the running kernel, open a terminal and type:5 q( a9 x: m7 ]! @

  w2 d3 @) R8 X8 {* C$ w  M2 i0 R+ b1 N, a) t, m; Y5 ]! x
# uname -r
1 t: c7 A* o5 b# |3 c
& j: B, ~* T9 J4 W$ V. c9 p2 r4 [2 |
+ ?' @* l9 l. d# K6 y* v- }If the version is something other than generic, you will need to modify the apt-get command shown below as appropriate.

  ]) B$ E( H0 N* m7 _2 V0 u. i+ |Package libstdc++5 is no longer shipped with Ubuntu 10.04. The version from Ubuntu 9.04 can be used instead. A sample shell script to install libstdc++5 is shown below.
/ u. T/ V. n3 M* O- c  J
# q- N. w' z2 Z, L$ |+ [/ h3 ?. Y% Y8 oAssuming that the script is located in the current working directory, all these packages and their respective dependencies can be installed by running the following two commands in a terminal session:
" h) d2 C3 B7 T; P) ?; R6 O/ _6 e7 q1 p6 p, T7 e
5 x! r9 r: b' x# n
# sudo apt-get install libmotif3 linux-headers-generic autofs nfs-common nfs-kernel-server
# ./install_lib5

9 j  {. b/ [$ [  O- D( z, n+ e" R2 f

! \) y! R5 o* k1 z/ {" ?) ~+ m' e[size=1em]

& Y* p+ ^( g  ]0 T: o; v' q# m; {  h$ {+ \8 \

' V; |7 b# o! C% Y. y+ ~
/ j& X9 l) u; \3 C, g2 H
Ubuntu 10.04 Desktop x86_64 (64-bit)
( M# v8 t6 c$ C. |( Z
  • libmotif3
  • linux-headers-* (see note above for confirming correct package)
  • libstdc++5
  • autofs
  • nfs-common
  • nfs-kernel-server
  • ia32-libs$ P; e, d3 v: m% M* @  [

. S' g% B' F( n. M5 e, JThe linux-headers-* package name must match the actual running kernel type; for example linux-headers-generic, or linux-headers-virtual. linux-headers-generic is the default for the Desktop kernel. To check the type of the running kernel, open a terminal and type:% r' ]  @: N8 Q$ b( D& o* S
1 x; o1 d0 s/ s4 T9 }, T" ~6 x

# B0 z+ G* ?- _8 q: h! y' t# uname -r2 G/ z5 @, |, H& w- w1 L2 a8 U3 ], ]

5 J2 |5 o! Q/ b4 x5 @' ~1 U4 ~" _+ ~! L4 n+ v* u1 ], M
If the version is something other than generic, you will need to modify the apt-get command shown below as appropriate.
In addition to the packages that are required for the 32-bit version, the 64-bit architecture requires the ia32-libs package. An additional configuration step is also necessary. This is because ClearCase tools are 32-bit and the graphic tools require libmotif3 support. However, Ubuntu repositories do not have 32-bit libmotif3 for 64-bit systems. A workaround is to extract the 32-bit libraries directly from the 32-bit native package. A shell script to implement this workaround is shown below. Assuming that the scripts are located in the current working directory, the package installation can be done using three commands:' h( k6 E, f% X( q. _# N

+ F8 F9 |3 y) v+ b6 \/ n. Q0 P: ~7 E! `/ x; x
# sudo apt-get install libmotif3 linux-headers-generic autofs nfs-common nfs-kernel-server ia32-libs
# ./install_lib5
# ./extract-motif32
9 i; l2 r2 k1 i! n, F5 @9 W( a
0 d$ f7 v' w9 T0 E3 S8 k  a

& h' i& x0 F# c5 z' u2 ~; F+ h
' J8 a4 `6 o+ M' j/ E[size=1em]

3 y  K' S, s7 S. V* J& u$ M6 ?2 ?4 m4 A) F7 R
, B0 ^$ t4 J7 Z# Y* Y) w% M8 {. R
Ubuntu 10.04 Server x86_64 (64-bit)
1 h4 H; `! k7 r" P2 t0 K  E
  • libmotif3
  • linux-headers-* (see note above for confirming correct package)
  • libstdc++5
  • autofs
  • nfs-common
  • nfs-kernel-server
  • ia32-libs
  • gcc
  • make
  • Xorg
    8 B2 k' S: O( R1 {/ n
In addition to the packages required by the Desktop system, the Server system requires the gcc, make and Xorg packages. Gcc and make are required to rebuild the MVFS kernel module. Xorg is required for the graphical tools such as xclearcase and xcleardiff.
The linux-headers-* package name must match the actual running kernel type; for example linux-headers-generic, or linux-headers-virtual. linux-headers-generic is the default for the Desktop kernel. To check the type of the running kernel, open a terminal and type:
5 H6 }( s# y$ N4 y8 c
( Z+ ~$ G* b( K3 F; g5 C5 @& q7 D; R+ h' `
# uname -r
( F2 X1 r# `" g9 {# A5 s
: D, J. n- F5 {) d  [. Z; V3 s& n& ?. }, h/ }
If the version is something other than generic, you will need to modify the apt-get command shown below as appropriate.
In addition to the packages that are required for the 32-bit version, the 64-bit architecture requires the ia32-libs package. An additional configuration step is also necessary. This is because ClearCase tools are 32-bit and the graphic tools require libmotif3 support. However, Ubuntu repositories do not have 32-bit libmotif3 for 64-bit systems. A workaround is to extract the 32-bit libraries directly from the 32-bit native package. A shell script to implement this workaround is shown below. Assuming that the scripts are located in the current working directory, the package installation can be done using three commands:# i  P! B# O1 l! [( P+ S' {
# sudo apt-get install libmotif3 linux-headers-server autofs nfs-common nfs-kernel-server ia32-libs gcc make Xorg
# ./install_lib5
# ./extract-motif32
1 c; D+ i  r; l  Z  q" ]3 }: Q

8 Q9 _! x/ J9 q6 j/ O9 c; {+ D! o[size=1em]
/ |, C4 W+ Y0 h4 H1 H4 L

7 d8 m  A4 F9 ]5 t* m7 B+ {. ?

* B" T8 Y/ z" i/ d" SSample install_lib5 script
. N! A% b% b/ e  X* y  u8 N8 y+ J9 k& @) X- C- E; O
Note:This script does not simply use the default installation methods of dget because that will not work properly on 64-bit platforms. On 64-bit platforms, 32-bit libraries need be installed in /usr/lib32 to prevent them from interfering with the 64-bit versions of the same libraries. Default installation would put both 32-bit and 64-bit libraries in /usr/lib. This method also avoids the need to load additional packages just to resolve dependencies of libstdc++5 that ClearCase does not share.& _  M: P# ^$ r! k/ r' U  E
1 S7 l. Z3 X2 @. o5 G& s- I
- H+ F5 ?% C5 k' h0 C: {. {4 e( f; n
#!/bin/sh
5 g* S3 P+ k0 @8 k( U  @2 V" v3 }7 s# W. J9 h3 e
TMP_DIR=/tmp/install_libstdc++5.$$8 }7 f' [* V, r, S( J
PKG64LIB=libstdc++5_3.3.6-15ubuntu4_amd64.deb" |0 l/ g# A7 G
PKG32LIB=libstdc++5_3.3.6-15ubuntu4_i386.deb
" ~" s1 `% c( O, H0 R7 oREPO=http://mirrors.kernel.org/ubuntu* a6 y2 n' @) {: T6 t
SUDO=sudo+ `# S# N9 ~" q" |" F
% A7 _; c/ z1 U+ w1 m' K; C9 t
echo Installing libstdc++50 \2 f& Y, D* f4 M: D: B; s
mkdir ${TMP_DIR}# ?# ?% N" w  N/ n6 K
: l# P& e8 f; t2 `. L% f
# as libstdc++5 is not available for Lucid, we will have to download it8 b' i" N- d4 P! g' _0 V
# from Jaunty
- a/ Q. ~1 O2 P! K* s( v# I'm not just "dpkg -i" because it would create a lot of dep failures. 3 k4 ]7 c! m# J1 o- s# k
echo "Downloading ${PKG32LIB}"8 I  }2 g3 `' Z
cd ${TMP_DIR} && wget ${REPO}/pool/universe/g/gcc-3.3/${PKG32LIB}9 E; K5 R) J, r) \+ P% w
if [ $? -ne 0 ] ; then
; N, H- O7 }! f. i- f4 P) i        echo "Error downloading ${PKG32LIB}"
& [& x9 Y8 _+ F* v5 `7 F; b+ k        exit -2
! o6 T" Q8 a. `: A: Bfi0 n, J  B" t" J. N! G( u4 ?
* a5 Y# O% \. V# ]/ a2 B$ R
if [ "`uname -m`" = "x86_64" ] ; then
3 M4 n4 U  |5 H9 v% m8 V2 ?# ?        DST=/usr/lib323 i6 y4 j  b: K& P
else
8 g) [' _3 m) @2 W        DST=/usr/lib8 }3 d) G! {8 D' c" X! O  V  l
fi
/ w* X) R4 G4 U/ f' w( b
" u6 L" m' S0 e" Ndpkg-deb -x ${PKG32LIB} ${TMP_DIR}
6 ~+ _5 S% [5 A$ zif [ $? -ne 0 ] ; then
6 N2 q. ]" Q- S) w8 e1 F- E0 A# _% N5 @7 `# G3 t( b
        echo "Error extracting libraries from package"4 n& F- a: ~2 k% z& X
        exit -3$ K; [9 P9 ^, M! C  W. d! Z8 c
fi
& s; A7 i% V% D; ^0 C" q7 t* [! Z8 g( t# t3 I6 V2 H* d
${SUDO} mv -i ${TMP_DIR}/usr/lib/lib*.so* ${DST}
) R$ y* ^1 b. f" O. `7 ?  s) P8 M# wif [ $? -eq 0 ] ; then
- N9 X9 _+ {3 q        echo "lib installed"+ \; j- C$ e: o
        ${SUDO} ldconfig' `  P% ^2 E" F; B' D
else4 V& p' v) h4 E3 C
        echo "Error moving lib to ${DST}"
8 C' P8 I4 _1 B$ N- E" L8 Q% b. a3 efi- K$ I% o  C$ R5 ?+ H$ p

  H4 A1 `! g" Jecho "Removing temporary directory"
1 {- \" W: l0 ^) s3 r* drm ${TMP_DIR} -fr
, N0 c* H7 w8 x* r$ H. `( V& U6 j9 n
8 m4 P+ I6 I9 v2 ^, E% I' M
) [6 v' U* _8 H# {Sample extract-motif32 script/ q) C0 B" b) V' n8 V2 Z1 g- }

- n# H9 q+ G: W, w; p5 V! Y; \#!/bin/sh" `' q5 I% P3 r2 J
/ S5 K- S; h" j1 I8 p% s# V6 z
if [ "`uname -m`" != "x86_64" ] ; then4 p4 U) G  R" a% j6 b* }
        echo "This is only needed for 64 bits systems."
& Z4 R, F4 S) p        exit -1
* {* d; h7 b$ F; R( efi4 t# R8 B# K. p

6 }# r, i) ?, Y! v+ {echo Installing 32 bits libraries...
( M, R" [5 _0 P% {) _- E; L% K- {! r
1 y( T. C) X9 W, G# compatibility libraries( Y3 G$ E0 @( v1 ~" k* i
sudo apt-get install ia32-libs& @4 d6 ]$ C; D; G' l" k3 l
TMP_DIR=/tmp/install_libmotif3_32_bits.$$' p, E/ v0 i8 {
MOTIF3LIB=libmotif3_2.2.3-2_i386.deb
' N% q( u; q! q+ _2 JREPO=http://mirrors.kernel.org/ubuntu* P8 a3 l; z  u8 E1 \7 `

7 S  P4 G; ^0 B6 u/ z# compatibility libraries( y& ~6 b& B# k
sudo apt-get install ia32-libs
+ w0 g% Y& {/ \, `2 \mkdir ${TMP_DIR}
- K  T7 u" f8 M+ x1 ?
, n0 g( F5 |; N8 c. L3 x# Install the 32 bits version - because there is no 32 bits0 X: I1 _% E; q. M% C( p! U
# compatibility package, we need to use the library from the native
" g+ |0 M7 U# d# 32 bits package.
/ J3 S. b( X1 O9 a) A) T# Note: The 32 bits lib will not be updated/upgraded automatically.
. I1 O4 j1 y: z: d! Z' icd ${TMP_DIR} && wget ${REPO}/pool/multiverse/o/openmotif/${MOTIF3LIB}( |* f/ i. g% b
if [ $? -ne 0 ] ; then
4 Q& F% R6 I8 k/ {  r. {, B        echo "Error downloading ${MOTIF3LIB}"* l, b: _' C+ n5 v
        exit -2! e8 k- m, r& G
fi* z4 B: B7 e. g+ {5 \6 t' S
$ X2 D% x! a8 ]
dpkg-deb -x ${MOTIF3LIB} ${TMP_DIR}# ~1 y3 M! e0 }
if [ $? -ne 0 ] ; then" c( @! S9 b4 o( j7 L+ n, ]
        echo "Error extracting libraries from package"8 o0 }0 }+ n, n  J, z/ \6 q
        exit -3
, l7 e: R+ F0 a: q( i5 z' P, cfi, |/ p7 k1 b6 f4 v3 P

; F+ _& c1 J* f$ n! g$ E) f9 pls ${TMP_DIR}/usr/lib/lib*.so*
. w8 H! b9 d, K* u
$ x0 i* w$ M4 a4 H, g' o: O& xsudo mv -i ${TMP_DIR}/usr/lib/lib*.so* /usr/lib32
: q" d, ]# p8 e% K  D/ Z, r! U7 [! A+ p$ i( v8 w
if [ $? -eq 0 ] ; then4 z/ Q$ ~, B4 s& t7 V
        echo "32 bits motif installed"
8 d( `9 ^' h* D# A0 h5 M& M1 [        sudo ldconfig
8 e6 |' ?4 T, ~; w6 ?8 t; _5 L( celse
/ n# D) e, F- G8 D/ \, ?        echo "Error moving libraries"
+ ^- o2 x4 @2 n; C' Mfi
; Q8 u3 T! g' o1 t+ w
0 T; A# F' p" P9 Y) U  Y0 Cecho "Removing temporary directory"
* S* c) m9 x: H) hrm ${TMP_DIR} -fr( x0 Q% n+ @0 r6 {0 e
 楼主| 发表于 2011-6-19 15:29:07 | 显示全部楼层
竟然没有人关注这个
回复 支持 反对

使用道具 举报

发表于 2011-6-20 09:53:03 | 显示全部楼层
呵呵,强烈跟帖。支持Ubuntu 10.04 Linux的Clearcase版本得7.1.2了吧~
回复 支持 反对

使用道具 举报

发表于 2011-6-25 08:59:01 | 显示全部楼层
来的是够晚的,大家都在svn/git呢,
1 B+ O! T; H( `  h
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

SCMLife推荐上一条 /5 下一条

QQ|小黑屋|手机版|无图版|SCMLife.com ( 京ICP备06056490号-1 )

GMT+8, 2019-12-8 16:07 , Processed in 0.064274 second(s), 6 queries , Gzip On, MemCache On.

Powered by SCMLife X3.4 Licensed

© 2001-2017 JoyShare.

快速回复 返回顶部 返回列表