Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found #3

Open
Looong01 opened this issue Feb 20, 2024 · 9 comments

Comments

@Looong01
Copy link
Owner

Looong01 commented Feb 20, 2024

@PavanKumarMiriyala
PavanKumarMiriyala
on Feb 7, 2023
I'm using ubuntu 20.04, ROCm 5.4.0, Python 3.8.13, torch 1.13.0. But I'm facing the below error

OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/conda/lib/python3.8/site-packages/torch_scatter/_version_cuda.so)
@Looong01
Copy link
Owner Author

Looong01 commented Feb 20, 2024

@Looong01
Looong01
on Feb 7, 2023
Author

I'm using ubuntu 20.04, ROCm 5.4.0, Python 3.8.13, torch 1.13.0. But I'm facing the below error

OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/conda/lib/python3.8/site-packages/torch_scatter/_version_cuda.so)

What operation did you do before this error?

@Looong01
Copy link
Owner Author

@PavanKumarMiriyala
PavanKumarMiriyala
on Feb 7, 2023
I did

wget https://github.com/Looong01/pyg-rocm-build/releases/download/1/torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
unzip torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
pip3 install *.whl

Installation is successful. I'm facing the above error when I run an example gcn code.

@Looong01
Copy link
Owner Author

Looong01 commented Feb 20, 2024

@Looong01
Looong01
on Feb 7, 2023
Author

I'm using ubuntu 20.04, ROCm 5.4.0, Python 3.8.13, torch 1.13.0. But I'm facing the below error

OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/conda/lib/python3.8/site-packages/torch_scatter/_version_cuda.so)

You can make an issue here. https://github.com/Looong01/pyg-rocm-build/issues

@Looong01
Copy link
Owner Author

Looong01 commented Feb 20, 2024

@Looong01
Looong01
on Feb 7, 2023
Author

I did

wget https://github.com/Looong01/pyg-rocm-build/releases/download/1/torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
unzip torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
pip3 install *.whl
Installation is successful. I'm facing the above error when I run an example gcn code.

I think the libc version in your os is too old.

Solution:

sudo strings /lib/x86_64-linux-gnu/libc.so.6 |grep GLIBC, make sure there are no strings include GLIBC_2.32

If 1 is true, download th newest or required version of glibc (http://ftp.gnu.org/gnu/glibc/)
Take glibc-2.37 as an example.

tar xvf glibc-2.37.tar.gz
cd glibc-2.37
mkdir build
cd ./build
../configure --prefix=<the path you want to install>
make -j<the number of your CPU cores> #if your cpu has 8 cores, then "make -j8"
sudo make install
sudo rm -rf /lib/x86_64-linux-gnu/libc.so.6
sudo ln -s <the path you installed glibc>/lib/libc-2.37.so /lib/x86_64-linux-gnu/libc.so.6

@Looong01
Copy link
Owner Author

@PavanKumarMiriyala
PavanKumarMiriyala
on Feb 7, 2023
Yes, it is due to old libc version in my OS. I resolved that issue. Thank you so much.

@ashwinma
Copy link

@Looong01 unfortunately, I do not have root access and do not have the privileges to upgrade the OS on this cluster. Can you suggest any alternatives?

@glukhove
Copy link

glukhove commented Mar 1, 2024

Also have the same issue and can't change the version of glibc on cluster. Did anyone try another release version to fix the issue?

@Looong01
Copy link
Owner Author

Looong01 commented Mar 1, 2024

@Looong01 unfortunately, I do not have root access and do not have the privileges to upgrade the OS on this cluster. Can you suggest any alternatives?

  1. U can try to use Docker.
  2. U can try to compile and install it in ur own path, which do not need to use root access. And then link this new libc.so.6 to ur python interpreter of ur envs.

@Looong01
Copy link
Owner Author

Looong01 commented Mar 1, 2024

Also have the same issue and can't change the version of glibc on cluster. Did anyone try another release version to fix the issue?

U can install glibc in anaconda's envs. Then python will use this, instead of the one of system(/lib/x86_64-linux-gnu/libc.so.6). So, u can manipulate it without root access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants