install.sh fails with 'gethostip: command not found' and 'gethostip -d <domainname> does not match hostname -i' errors installing RSA Identity Governance & Lifecycle
Originally Published: 2015-11-30
Article Number
Applies To
RSA Version/Condition: All
Platform: Red Hat Enterprise Linux (RHEL)
Platform/Application Server: WildFly
Issue
# 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
#
# ./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
#
Cause
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.
Resolution
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.
EXAMPLES
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.
- Check to see if syslinux has been installed. As root, execute the following:
# rpm -qf /usr/bin/gethostip syslinux-4.02-7.2.el5
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
or
rpm -Uvh <RH OS media location>/syslinux*
- 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
.:/u01/app/oracle/product/12.1.0/db_1/bin::/etc/alternatives/java_sdk_1.7.0/bin:
/usr/kerberos/sbin:/usr/kerberos/bin:/opt/ant/ant/bin:/usr/bin:/bin:/sbin:
/usr/sbin:/mnt/sysimage/bin:/mnt/sysimage/usr/bin:/mnt/sysimage/usr/sbin:
/mnt/sysimage/sbin:/mnt/sysimage/usr/X11R6/bin:/root/bin
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
Related Articles
How to verify that changes made to cknfastrc file have taken affect for supporting SSL keys based on nCipher/Thales PKCS#1… 69Number of Views How to determine the version and patch level of RSA Identity Governance & Lifecycle 48Number of Views Changes to JSP files require an application restart to take effect in RSA Identity Governance & Lifecycle 68Number of Views If the RSA Identity Governance and Lifecycle Rule Status is invalid, a Segregation of Duties (SOD) rule definition takes … 51Number of Views Hyperlinks in the Email body of Workflow Nodes that are defined as Job Level Variables are not saved in RSA Identity Gover… 79Number of Views
Trending Articles
How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device RSA-2026-10: RSA Authentication Manager Security Update for Third-Party Component Vulnerabilities Download RSA SecurID Access Cloud User Event audit logs using Cloud Administration REST API CLU RSA SecurID Desktop Token 5.0.3 for Windows Administrator's Guide RSA SecurID Software Token 4.2.1 for Mac OS X Administrator's Guide
Don't see what you're looking for?