Symptom
In order to run SAP HANA Database (revision 80 or higher) on RHEL 6 or SLES 11, additional operating system software packages are required. Otherwise the database will not start and it issues an error message like the following:
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/sap/HDB/HDB00/exe/libhdbrskernel.so)
Other Terms
HANA GCC4.7
Reason and Prerequisites
As of SAP HANA revision 80 or higher, the database is build with a newer compiler version, than originally delivered with RHEL 6 and SLES 11. Therefore an additional runtime environment for GCC 4.7 needs to be installed before running such a database revision.
On RHEL 6 and SLES 11 starting with SLES 11 SP3 the runtime is available via the normal software update repositories.
Customers running SLES 11 SP1 or SP2 are asked to manually download the required packages.
Please note: Systems running a HANA DB client only, e.g. SAP application servers, do not require an update of the libraries, as the client software is still build with the original GCC 4.3 compiler.
Solution
In order to run SAP HANA Database (revision 80 or higher) on RHEL 6 or SLES 11, the required GCC 4.7 libraries need to be installed.
- RHEL 6
The RPM package compat-sap-c++ needs to be installed: In order to be able to get access to the library customers need subscriptions for “Red Hat Enterprise Linux Server for SAP HANA”. With this subscription you can subscribe your server to the “RHEL Server SAP HANA” channel on the Red Hat Customer Portal or your local Satellite server. After subscribing a server to the channel the output of “yum repolist” must contain the following:
rhel-x86_64-server-sap-hana-6 RHEL Server SAP HANA (v. 6 for 64-bit x86_64)
Afterwards the GCC 4.7 libstdc++ library can be installed with the following command:
# yum install compat-sap-c++
- SLES 11
The RPM packages libgcc_s1 and libstdc++6 need to be installed. Please ensure to run at least the following versions, since earlier versions will cause problems during runtime of SAP HANA, because of improper exception handling:
libgcc_s1-4.7.2_20130108-0.17.2
libstdc++6-4.7.2_20130108-0.17.2
Starting with SLES 11 SP3 please install the RPM packages as follows, if they are not already installed by default:
# zypper install libgcc_s1 libstdc++6
Please note: You can also operate older revisions of SAP HANA (< revision 80) on this system after installing the GCC 4.7 libraries. There is no need to reboot.
- SLES 11 with older Service Packs
On SLES 11 SP1 or SP2 the packages are not available via the normal maintenance channels and therefore need to be downloaded manually from the following URL at SUSE:
https://download.suse.com/Download?buildid=MSwlt1Xxqhw~
Please download the archive gcc47-runtime.zip and extract it to a local directory, e.g.
# unzip -d /tmp/gcc47-runtime gcc47-runtime.zip
Afterwards you can install the libraries using zypper as well:
# zypper install /tmp/gcc47-runtime/lib*.rpm
Zypper will complain about package dependencies, therefore please choose option 1 (deinstallation of the older GCC 4.6 libraries) in order to proceed and confirm your choice after ignoring the warnings about support:
# zypper install /tmp/libstdc++6-[...].x86_64.rpm /tmp/libgcc_s1-[...].x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
2 Problems:
Problem: libgcc_s1-[...].x86_64 conflicts with libgcc1 < 4.7.2_[...] provided by libgcc46-[...].x86_64
Problem: libstdc++6-[...].x86_64 conflicts with libstdc++6 < 4.7.2_[...] provided by libstdc++46-[...].x86_64
Problem: libgcc_s1-[...].x86_64 conflicts with libgcc1 < 4.7.2_[...] provided by libgcc46-[...].x86_64
Solution 1: deinstallation of libgcc46-[...].x86_64
Solution 2: do not install libgcc_s1-[...].x86_64
Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1
Problem: libstdc++6-[...].x86_64 conflicts with libstdc++6 < 4.7.2_[...] provided by libstdc++46-[...].x86_64
Solution 1: deinstallation of libstdc++46-[...].x86_64
Solution 2: do not install libstdc++6-[...].x86_64
Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): 1
Resolving dependencies...
Resolving package dependencies...
The following NEW packages are going to be installed:
libgcc_s1 libstdc++6
The following packages are going to be REMOVED:
libgcc46 libstdc++46
- SLES 11 with older Service Packs
The following packages are not supported by their vendor:
libgcc_s1 libstdc++6
2 new packages to install, 2 to remove.
Overall download size: 293.0 KiB. After the operation, 16.0 KiB will be freed.
Continue? [y/n/? shows all options] (y): y
Please note: You can also operate older revisions of SAP HANA (< revision 80) on this system after installing the GCC 4.7 libraries. There is no need to reboot.