Otherwise, if you're one those poor bastards that are tasked(like me) with installing the less-than-FOSS IBM Rational Clearcase (c) (version 7.1.1) on the CentOS 5.8 GNU/Linux machine, you've come to the right place for some notes on a real installation.
Basically, IBM Clearcase does not include support for CentOS. To make things worse - the IBM installer will actually fail the install for "unsupported operating system" when installing on the non-supported operating system. As to why the IBM installer doesn't have the option to "try anyway" is beyond me, but since it doesn't, we will have to resort to other means.
Luckily, it is rather easy to workaround the "unsupported operating system" problem. To install Clearcase 22.214.171.124 on CentOS 5.8, we simply have to trick it into thinking that our CentOS is actually Red Hat Enterprise Linux. In this post, I'm providing an overview for how the installation process worked for me.
Disclaimer: This is an experimental procedure only. By using these methods, you accept full responsibility for any subsequent damages that might happen to your system by using these instructions.
And now for the installation details:
First, on the computer you'll use for testing Clearcase, install CentOS 5.8 GNU/Linux (32-bit version in this example). There are no special requirements to this step, except that upon your first login, you should run all system/security updates. After running the updates, you should reboot to ensure you are booted to the latest installed kernel.
Related terminal command for system updates:
yum update && yum upgrade -y
And now, let's get the system ready for the install of Clearcase 7.1.1:
Note: These commands assume you are running the terminal as root, use this command to become root:
Next, check to see if you are running the PAE kernel so we can decide which dependency packages to install for the Clearcase MVFS module build. Run the command below and take note of the result:
Example result for running the PAE kernel:
Now, let's install the dependencies needed to build the mvfs module for Clearcase:
If you are having the PAE kernel:
yum install compat-libstdc++-33 \
gcc glibc-devel glibc-headers kernel-headers \
kernel-devel kernel-PAE-devel -y
If you are NOT having the PAE kernel (command above would work fine too):
yum install compat-libstdc++-33 gcc glibc-devel \
glibc-headers kernel-headers kernel-devel -y
In this step, we'll set up the trickery that is needed to mask CentOS system to mask itself as Red Hat for the installation of Clearcase 7.1.1:
First, open the terminal, and make a backup of your redhat-release file:
cp /etc/redhat-release /etc/redhat-release.original
Then, edit /etc/redhat-release as follows:
Insert this text:
Red Hat Enterprise Linux ES release 5
Save the file and close it.
Now, let's Mount the VOB storage folder on your clearcase server using NFS so the MVFS will be able to mount the VOB folder. To do this, create a mount point (directory):
Then, modify /etc/fstab to mount the clearcase folder you just created:
Add a line to mount the server files:
Then, re-process the entries from /etc/fstab with:
Then, test to ensure you can see the files on the server with this command (should not produce an error):
Unzip and install the IBM installation agent (installer version 1.3.3 for this example), cd into the dir, then run the install script:
unzip -d extracted agent.installer.linux.gtk.x86_1.3.3.zip
Then, use the graphical interface to install the IBM Installer (Note: You should restart the installer with the button provided at the last step of the process).
Now for the install of Clearcase 126.96.36.199. From the IBM Installation Manager, click File > Preferences > Add Repository, then Browse to "Disk 1" dir of your Clearcase 7.1.1 installation files and add the diskTag.inf as a repository. Click OK as necessary to get back to the IBM Installation Manager screen, then click the install button to install Clearcase.
As for the installation steps, I used the defaults pertaining to my environment, except I also added the "ClearCase Full Function Installation" package, and I tested to ensure the "kernel source" build directory was accessible on the MVFS Module page. To test this yourself, run ls of the directory in the terminal. The result should be an existing directory with a list of files:
ls /lib/modules/$(uname -r)/buildfor me.
If you get an error at this step, check to ensure the dependency packages are installed (per the step above).
If for some reason the MVFS module doesn't get built by the installer, you may see a message like "... albd_server MVFS module could not be found ..." when restarting clearcase with this command:
If you experience the above error, you can try building and installing the MVFS module by hand with these commands:
Finally, to test that the MVFS module is installed and running, perform these commands:
The result should list out your VOB directories with a * (to show mounted) to the left. Example:
So, that's it. Hopefully something here will help someone with their setup. If you have any questions or comments, please leave them below.