Greetings,
We are AIX6.1 TL6 SP5 and for all of our Integrator releases we have at times run dual roots. Currently we are doing 5.7R2 and 5.8R4.
The key system file is /etc/environment which is updated by the installation software from Lawson Healthvision (Cloverleaf) with the following key lines: (values for 5.7 shown – we keep the 5.8 version as a backup when we will upgrade to 5.8 release as only version)
# begin HCIenv 5.7
FPATH=/quovadx/qdx5.7/integrator/kshlib
CL_INSTALL_DIR=/quovadx/qdx5.7
# end HCIenv 5.7
At login this is referenced to load the environment variables for the specified root. I am not sure if the Linux OS has a similar file – suspect they do.
Also: to navigate between the two roots we have set up an alias in our user file /home/hci/.profile.local.end to set the alternate root’s values.
For us alias = go57 (or go58) that looks like the following:
Note: ROOT_LIST is for us and not required here – used in some function calls that we wrote:
alias go57=’export FPATH=/quovadx/qdx5.7/integrator/kshlib; export ROOT_LIST=”/quovadx/qdx5.7/integrator”; export CL_INSTALL_DIR=/quovadx/qdx5.7; setroot /quovadx/qdx5.7/integrator; showroot; goroot’
alias go58=’export FPATH=/healthvision/cis5.8/integrator/kshlib;export CL_INSTALL_DIR=/healthvision/cis5.8; setroot /healthvision/cis5.8/integrator helloworld; cd $HCISITEDIR; showroot’
In the /home/hci/.profile you add the following (may already be in place) as the last command: (loads your aliases and functions as defined in the “local” file)
if [ -r .profile.local.end ] ; then . .profile.local.end ; fi
I hope this helps you out.