I compiled a c++ program on my ubuntu 12.04 machine and am attempting to run it on a red hat linux server. When I run it on the server I get this error:
/lib64/libc.so.6: version `GLIBC_2.14′ not found
I found the libc.so.6 file and found it was linked to libc-2_12.so in the same directory. I assume I need to replace the libc-2_12.so file with one like libc-2_14.so. But through searching I found no way of doing it or if it is even possible. Is there a way to fix this issue?
IMO, the best way is to recompile your program for RedHat.
In RH the only way to replace that file is to recompile the whole libc, but it will destroy all other software installed with RH. RH’s packaging system does not allow you to switch between different versions of libc.