I have created c++ application in Ubuntu machine. I have copied binary to Centos machine. Got error:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
I have installed packages I thought was needed:
yum install gcc gcc-c++ make openssl-devel
Still got the same error.
Then I have installed whole development tools:
yum groupinstall 'Development Tools'
Still have the same error. How to solve this problem?
I decided to check which versions of
glibc I have in my machines with help of
ldd --version command:
Ubuntu: 2.23 Centos6.9: 2.12
CentOS cmplains regarding
GLIBCXX_3.4.21, while Ubuntu owns
glibc version 2.23?