Troubleshooting
Problem
If the 32-bit libstdc++ and glibc-devel packages are not installed on Red Hat Enterprise Linux 6 (RHEL6), error messages are generated when configuring XL C/C++ for Linux or XL Fortran for Linux compilers supporting RHEL6.
Symptom
If the 32-bit libstdc++ and glibc-devel packages are not installed on your RHEL6 system, you might see the following error messages when configuring XL C/C++ for Linux or XL Fortran for Linux compilers on RHEL6.
When using xlc_install or new_install to configure the compiler, the following message is generated:
lap/lapc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
ERROR: License NOT accepted.
ERROR: Default compiler configuration file could not be generated.
When using vac_configure to configure the compiler, the following message is generated:
ERROR: Could not obtain "/usr/bin/gcc -m32" -v output. Ensure you have both 32-bit and 64-bit GCC installed from your operating system install media.
Cause
The 32-bit libstdc++ and glibc-devel packages are required by the XL C/C++ for Linux and XL Fortran for Linux compilers but are not installed by the default RHEL6 distribution installation.
Environment
RHEL6
Resolving The Problem
Install the following 32-bit packages from the RHEL6 distribution.
For example:
rpm -ivh libstdc++-4.4.4-13.el6.ppc.rpm
rpm -ivh glibc-devel-2.12-1.7.el6.ppc.rpm
In this example, libstdc++-4.4.4-13.el6.ppc.rpm and glibc-devel-2.12-1.7.el6.ppc.rpm are the 32-bit version of each package that can be found in the standard RHEL6 distribution. The version numbers, that is, 4.4.4-13. and 2.12-1.7 in the example, might vary depending on the version and update level of the RHEL6 distribution you have.
Related Information
Was this topic helpful?
Document Information
Modified date:
08 August 2018
UID
swg21455584