XCOM installation problems under SELinux
search cancel

XCOM installation problems under SELinux

book

Article ID: 211749

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Linux PC

Issue/Introduction

When trying to install XCOM to, for example, a Red Hat 8 (RHEL) server with SELinux enabled, installation fails with :

JRE libraries are missing or not compatible....

With XCOM 11.6 SP01 Java is included in the installation package and is not required as a prerequisite (this will not be the case with newer service packs or future releases).

Java bundled with the installer extracts to below location. 

/tmp/install.dir.12038/Linux/resource/jre/bin/java (or similar)

Environment

XCOM Data Transport for Linux PC

Cause

The issue arises when SELinux is in  "enforcing" mode which does not allow Java to run from the /tmp directory.

Resolution

The following suggestions will help circumvent this issue and allow the installation of XCOM.

  • To use a different temp directory for the installer, you can set the environment variable as below before running the installer program. For example, to use /app as a temp directory, use below. 
    export IATEMPDIR=/app
    Run the Installer program to check that the problem is resolved. 

  • If the problem is not resolved, change the SELinux mode.
    Assuming command sestatus or getenforce shows the SELinux mode is Enforcing.
    Change the SELinux mode to Permissive before running the installer as follows:
    setenforce 0;sh XCOM.bin
    Then after the installation revert the mode to Enforcing as follows:
    setenforce 1
    Use command sestatus or getenforce to check the mode is set back to Enforcing.

  • If the problem is still not resolved, try to change the SELinux to disabled in "/etc/selinux/config" and restart the system and run the installer. Once installed, restore the SELinux back to its original mode. 

Note: Please consult with the Linux System Administrator before taking any action.

Additional Information