Updated the product, and after the updating one of the command id not working, Check out command is not working
search cancel

Updated the product, and after the updating one of the command id not working, Check out command is not working

book

Article ID: 112448

calendar_today

Updated On:

Products

CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

Updated the product, and after the updating one of the command id not working, Check out command is not working and throwing an error in the library. 

 

Environment

CA Harvest SCM v12.5
Linux OS

Cause

The error message that hco (or agntd, bkrd, or any of the other command line utilities) is returning is:
 
ds(qual):/opt/CA/scm/lib $ hco
/opt/CA/pec/bin/rtarch: line 189: [: too many arguments
/opt/CA/pec/bin/rtarch: line 189: [: too many arguments
/opt/CA/scm/lib/hco: error while loading shared libraries: librtutil.so: cannot open shared object file: No such file or directory

This is happening because the script makes an assumption about which operating system it's in, based on whether this "/usr/lpp" folder exists.  If it does, the script "thinks" it is in an AIX operating system, and composes some of its internal statements to conform to requirements for that operating system instead of Linux.

Resolution

Option A:
Check to see if you have a folder on your computer named “/usr/lpp”.  If you find this folder, please rename or delete it.
 
Option B:
If this folder cannot be permanently renamed or deleted because other applications on the Linux server are using the folder, the alternate solution is to edit the "rtarch" script to make it search for a folder that truly does not exist on the computer. 

# cd to the folder containing the rtarch script 
cd /opt/CA/pec/bin 

# back up the rtarch script 
cp rtarch rtarch.original 

# search for and change "lpp" to "lpp-renamed" 
sed -i 's/lpp/lpp-renamed/g' rtarch 

# confirm that the change is as expected 
cat rtarch | grep lpp 

This will rename the folder within the script that is having trouble.