Oracle Linux Real-time protection issues
Issue
On Oracle Linux 8 and Oracle Linux 9, the compilation of the Real-time protection kernel module may fail because the default system GCC version does not match the GCC version used for the compilation of the running kernel.
Solution
To fix the issue, change the default system GCC to the GCC version used for the compilation of the running kernel by creating a systemd service override file.
1.Create service override file, run the following command as privileged user:
sudo systemctl edit efs |
2.Add the following content to the file based on your Oracle Linux version and save the file:
Oracle Linux 8
[Service] # Override to use gcc-toolset for kernel module compilation on Oracle Linux 8 ExecStartPre= ExecStartPre=/usr/bin/scl enable gcc-toolset-11 /opt/eset/efs/lib/install_scripts/check_start.sh |
Oracle Linux 9
[Service] # Override to use gcc-toolset for kernel module compilation on Oracle Linux 9 ExecStartPre= ExecStartPre=/usr/bin/scl enable gcc-toolset-14 /opt/eset/efs/lib/install_scripts/check_start.sh |
Alternative one-time fix
If you do not want to change the default GCC permanently, run the following command as privileged user depending on your Oracle Linux version:
Oracle Linux 8
scl enable gcc-toolset-11 /opt/eset/efs/lib/install_scripts/check_start.sh |
Oracle Linux 9
scl enable gcc-toolset-14 /opt/eset/efs/lib/install_scripts/check_start.sh |