Linux: Why does my installation fail and the environment variables for the installer are not preserved when using sudo to install?

By default, the operating system resets the environment so that it only contains the LOGNAME, SHELL, USER, USERNAME, and SUDO_ variables. Therefore, any environment variables (such as CLUSTERADMIN or BASEPORT), that you set during your IBM® Spectrum Symphony installation are not set in the sudo environment.

To preserve all the user environment variables when using sudo, add the following line to the beginning of the /etc/sudoers file:
Defaults !env_reset

Alternatively, if the sudo version on the machine is later than version 1.6.9, you installing with sudo -E to install successfully.