Updated the product, and after the updating one of the command id not working, Check out command is not working
Article ID: 112448
CA Harvest Software Change Manager - OpenMake Meister
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.
CA Harvest SCM v12.5 Linux OS
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.
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.