python -V python: error while loading shared librarie

shopcentar

Well-Known Member
PartnerNOC
Jul 10, 2004
55
1
158
Hi,

after night update from cron rpm on test server we get error
python -V
python: error while loading shared libraries: /usr/lib/libstdc++.so.6: requires glibc 2.5 or later dynamic linker

also apache are down.
we tested on other server and sam thing

problem are with libstdc++.so.6.0.8 we "fixed" this with change simlink from old
libstdc++.so.6.0.3 to libstdc++.so.6

so new libstdc++.so.6.0.8 are not compatible with glib

we run RHE4

but this is not full proof solution.

Regards
 

shopcentar

Well-Known Member
PartnerNOC
Jul 10, 2004
55
1
158
cpanelstuff, do you have solution for this error
/usr/local/apache/conf/php.conf: Cannot load /usr/local/apache/modules/mod_suphp.so into server: /usr/lib/libstdc++.so.6: requires glibc 2.5

?
 

keddie

Well-Known Member
Nov 17, 2007
50
0
56
I have just discovered this issue on one of my legacy Centos 4.7 CPanel servers:

[email protected] [/var/log]# python -v
python: error while loading shared libraries: /usr/lib/libstdc++.so.6: requires glibc 2.5 or later dynamic linker
I'm not using suphp and Apache is working fine. A lot of basic commands aren't though:

[email protected] [/var/log]# man grep
/usr/bin/gtbl: error while loading shared libraries: /usr/lib/libstdc++.so.6: requires glibc 2.5 or later dynamic linker
At first glance it looks like a problem with RHEL 4 / Centos 4, any thoughts Cpanel?

Regards,

Al
 

shopcentar

Well-Known Member
PartnerNOC
Jul 10, 2004
55
1
158
we have RHE4

fix are

########################
FIX
########################
cd /usr/lib/;ls -la libst*;


#then remove symbolic link
rm libstdc++.so.6

#then recreate symbolic link for OLD file libstdc++.so.6.0.3 becouse libstdc++.so.6.0.8 not working

ln -s libstdc++.so.6.0.3 /usr/lib/libstdc++.so.6

#check what you done
ls -la libst*;

BUT this is manual FIX, whay this happend, whay libstdc++.so.6.0.8 not working ?

cpanel, please check this issue.

Regards
 

keddie

Well-Known Member
Nov 17, 2007
50
0
56
Thanks shopcentar, relinking to the old libstdc++ file worked perfectly.

I would be interested if others who are still on Centos 4 are having this issue?

I agree, Cpanel should take a look at this while Centos 4 is still (just) being supported..