While installing PAM Server Control (PAMSC) on a Linux server, the following error is observed. The kernel is listed as supported on the PAMSC Compatibility Matrix.
root@<hostname>:/tmp$ ./install_base
/tmp/pre_install/getvar.sh: line 2550: [: O: integer expression expected
/tmp/pre_install/getvar.sh: line 2535: [: O: integer expression expected
./install_base: line 2464: [: O: integer expression expected
This platform is not supported.
PAM Server Control (PAMSC) endpoints
The getvar.sh script, which is called by install_base, parses the /etc/os-release file to identify the OS version. If the /etc/os-release file is formatted unexpectedly or contains non-standard version strings, the script fails to parse the integers required for platform validation.
For example, here is the output from a working environment.
+ '[' -f /etc/os-release ']'
++ awk -F= '/^VERSION_ID/ {print $2}' /etc/os-release
++ awk -F. '{print $1}'
++ tr -d '"'
+ OSMAJ=8
++ awk -F= '/^VERSION_ID/ {print $2}' /etc/os-release
++ awk -F. '{print $2}'
++ tr -d '"'
+ OSMIN=6
And here is the output from a non-working environment.
+ '[' -f /etc/os-release ']'
++ awk -F= '/^VERSION_ID/ {print $2}' /etc/os-release
++ tr -d '"'
++ awk -F. '{print $1}'
+ OSMAJ=049-202
++ awk -F= '/^VERSION_ID/ {print $2}' /etc/os-release
++ tr -d '"'
++ awk -F. '{print $2}'
+ OSMIN=git20260511
To resolve the issue, ensure that the os-release file stores the operating system version information in a standard format using one of the following options.