ImportError: /lib64/ version `GLIBC_2.18′ not found on CentOS 7

I don’t have a solution for this one, but I managed to go ahead with different settings. I got this package from a colleague that is supposed to be of general interest. It does come with a binary inside, and when you run it, you get the above GLIBC error. A little bit of googling will point onto python as a culprit of the error, and since I have a local python (my pyyyython) that is working fine and it is easy to maintain, I used that one to run the code. The point is, anyway, what to do if you don’t have “my” python.

You could download and compile your glibc. That worked fine in my CentOS 7 case:

mkdir ~/glibc_install; cd ~/glibc_install 
tar zxvf glibc-2.XX.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
make install
export LD_LIBRARY_PATH=/opt/glibc-2.XX/lib

Note that XX is the GLIBC version. After the install, I could link the new library with the old one, something like

ln -s /opt/glibc-2.XX/lib/ /usr/lib64/

Be aware that you can screw up your system if you delete! But don’t panic if you already did, ldconfig will reconfigure your libraries and bring you back to a running system. Or I think it will 😛 …



3 thoughts on “ImportError: /lib64/ version `GLIBC_2.18′ not found on CentOS 7

  1. Pingback: GLIBC_2.25 compile on CentOS 7.8 | Bits and Dragons

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s