JRE libraries are missing or not compatible error when running the Spectrum Installer
search cancel

JRE libraries are missing or not compatible error when running the Spectrum Installer

book

Article ID: 389375

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction


When running the Spectrum Installer on linux an error is returned and the installer exits.


"JRE libraries are missing or not compatible"


Cause


The /tmp filesystem was mounted with the 'noexec' flag which prevents anything from being executed on the filesystem. Spectrum uses
   InstallAnywhere which extracts the installer files under /tmp and executes the java installer from there.

Resolution


1. Create an alternate tmp location and map an InstallAnywhere environment variable to point to the new location

    ex.
   
   mkdir -p /opt/tmp
   chmod 774 /opt/tmp

   export IATEMPDIR=/opt/tmp 
   ./setuplin.exe


2. In the case of using 'sudo' for the install. Sudo will not see the environment variable set in the session 

    - update the sudoers (/etc/sudoers) file to allow the IATEMPDIR env to be set
  
      /etc/sudoers
   Defaults        env_keep +="IATEMPDIR"

   - execute the installer using sudo while setting the env as well

   sudo IATEMPDIR=/opt/tmp ./setuplin.exe


   Note: If the sudoers file is not updated it may not allow the environment variable and you could see an error like

      "sudo: sorry, you are not allowed to set the following environment variables: IATEMPDIR"