000032028 - install.sh fails with 'gethostip: command not found' and  'gethostip -d <domainname> does not match hostname -i' errors installing RSA Identity Governance & Lifecycle

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support on Sep 5, 2020
Version 3Show Document
  • View in full screen mode

Article Content

Article Number000032028
Applies ToRSA Product Set: RSA Identity Governance & Lifecycle 
RSA Version/Condition: All
Platform:  Red Hat Enterprise Linux (RHEL)
Platform/Application Server: WildFly
IssueThe RSA Identity Governance & Lifecycle installation fails with the following errors:
# cd /tmp/aveksa/staging
# ./install.sh
Checking /etc/hosts file entry...
common.sh: line 508: gethostip: command not found 
gethostip -d <domainname> does not match hostname -i
Make sure <domain-name> is set to <ip-address> in your etc/hosts


CauseThe first error:
gethostip: command not found 

occurs because either:

  • the default location of the gethostip file, /usr/bin, is not in the root user's PATH environment variable, or
  • the command does not exist on the system because the Operating System (OS) package (syslinux) that contains the gethostip command is not installed.

The second error:
gethostip -d <domainname> does not match hostname -i

occurs as a result of the first error. Because the command is not found, no information is returned from the gethostip comand, so it cannot match any information returned by the hostname command regardless of whether the contents of the /etc/hosts file are correct or not. 

The most common reason for this error is that the syslinux package has not been installed. When installing an Operating Systems, not all packages are installed by default.
ResolutionIf gethostip does NOT exist in /usr/bin, check to see if the Operating System (OS) package that contains the gethostip command, syslinux, has been installed.

If gethostip does exist in /usr/bin and /usr/bin is not defined in the PATH environment variable, then add /usr/bin to the PATH environment variable.   


If the below commands return no information, then corrective action must be taken. The examples show the information returned, when the Operating System is installed properly.
  1. Check to see if syslinux has been installed. As root, execute the following:

# rpm -qf /usr/bin/gethostip

If the above command returns no results, then install syslinux using a tool such as rpm or yum. The version of syslinux should be appropriate for the version of RHEL that has been installed. Examples of appropriate commands include the following:

yum install -y syslinux


rpm -Uvh <RH OS media location>/syslinux*

  1. Check to see if the gethostip file exists in /usr/bin, and if /usr/bin is defined in the PATH environment variable. As root, execute the following:

# ls -l  /usr/bin/gethostip
-rwxr-xr-x 1 root root 8728 Oct 15  2012 /usr/bin/gethostip

# echo $PATH

If /usr/bin is not in the PATH environment variable, it can be added by running a command similar to this:

# export PATH = $PATH:/usr/bin