Service failing to start with error: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /lib64/libstdc++.so.6)
Issue
- While restarting
xxxx.servicethrowing below failed status: -
For example: RHEL 7 error looks like below
dbus[123]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='xxxx.service' xxxx: /usr/lib/[...]: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /lib64/libstdc++.so.6) systemd: xxxx.service: main process exited, code=exited, status=1/FAILURE systemd: Unit xxxx.service entered failed state. systemd: xxxx.service failed. -
RHEL 8 error looks like below
systemd[1]: Starting Authorization Manager... xxxx[123727]: /usr/lib/[....]: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory systemd[1]: xxxx.service: Main process exited, code=exited, status=127/n/a systemd[1]: xxx.service: Failed with result 'exit-code'.
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.