Environment
NetIQ Access Manager 4.0
NetIQ Access Manager Admin Console Installation
Red Hat Enterprise Server 6.4 and 6.5
NetIQ Access Manager Admin Console Installation
Red Hat Enterprise Server 6.4 and 6.5
Situation
Tried to install NAM4.0 Admin Console on RHEL V6.4 but got an error that the install failed because of a hostname check error. Looking at the script in more detail (ran the bash -x ./install.sh), found that the install checks for the /etc/HOSTNAME file, which although exists on SLES does not exist on RHEL (uses /etc/sysconfig/network file instead).
The NAM pre_install.sh script has the following check:
If we manually create a dummy /etc/HOSTNAME file ("touch /etc/HOSTNAME") then it continues fine. Otherwise we could create and export the environment variable $HOSTNAME and the install continues fine:
export HOSTNAME=<actual hostname>
The NAM pre_install.sh script has the following check:
----- echo "Verifying hostname resolution..." # Validate the hostname and make sure it is resolvable HOSTNAME_RETRY_COUNT=0 HOSTNAME_NOT_SET=0 while [ "$HOSTNAME_NOT_SET" -eq 0 ] do HOSTNAME_ERROR_MSG="" sleep 2 #check for host name hostname=`sed -n 1p /etc/HOSTNAME` if [ -z $hostname ] then # if /etc/HOSTNAME file is empty, try reading the environment variable if [ ! -z $HOSTNAME ] then hostname=$HOSTNAME else HOSTNAME_ERROR_MSG="Hostname is not set. Set the hostname in YaST" fi fi -----In our case, the sed command (hostname=`sed -n 1p /etc/HOSTNAME`) cannot read the /etc/hostname file, throws an error and stops the installation.
If we manually create a dummy /etc/HOSTNAME file ("touch /etc/HOSTNAME") then it continues fine. Otherwise we could create and export the environment variable $HOSTNAME and the install continues fine:
export HOSTNAME=<actual hostname>
Resolution
Fixed in 4.0 SP1. Until then use the workaround above of creating the dummy /etc/HOSTNAME file, or $HOSTNAME environment variable.