Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/lib64/libstdc++.so.6 not found CentOS 7.3

I'm developing an app on Ubuntu 16.04. When I'm trying to deploy it on my Centos 7.3 servers, I'm receiving the following error:

/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found

I tried to do as mentioned at this answer but I'm still receiving the same error.

In order to compile my app, I compiled gcc 5.4.0 from source.

When I'm trying to update libstdc++ by yum install libstdc++.x86_64 it says that Package libstdc++-4.8.5-11.el7.x86_64 already installed and latest version

like image 822
liorko Avatar asked Aug 13 '26 14:08

liorko


1 Answers

If you're deploying on CentOS 7, build on CentOS 7.

Otherwise your runtime dependencies won't match up.

It's possible to ship your Ubuntu's libc and libstdc++ with your application, but you should avoid having to do this, if possible.

like image 197
Lightness Races in Orbit Avatar answered Aug 15 '26 05:08

Lightness Races in Orbit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!