Skip to content
New issue

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

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

Already on GitHub? # to your account

cannot find /lib64/libpthread.so.0 #606

Open
mojingtong opened this issue Oct 8, 2024 · 1 comment
Open

cannot find /lib64/libpthread.so.0 #606

mojingtong opened this issue Oct 8, 2024 · 1 comment

Comments

@mojingtong
Copy link

When I try to compile MinkowskiEngine by Anaconda, I use the command:
python setup.py install --blas_include_dirs=${CONDA_PREFIX}/include --blas=openblas

But it occurs the following problems:
/media/LOCAL/home/cn1978/miniforge3/envs/SLidR/compiler_compat/ld: cannot find /lib64/libpthread.so.0 /media/LOCAL/home/cn1978/miniforge3/envs/SLidR/compiler_compat/ld: cannot find /usr/lib64/libpthread_nonshared.a collect2: error: ld returned 1 exit status error: command '/media/LOCAL/home/cn1978/miniforge3/envs/SLidR/bin/g++' failed with exit code 1

My environment is: torch=1.9.0, cuda=11.1, python=3.8, gcc=9.4.0

Thanks a lot!

@lgleznah
Copy link

Hi there!

In my case, my environment is using pytorch==1.12.1, cuda==11.3, python==3.8.5 and gcc==9.5.0 inside an Ubuntu 22.04 WSL running in Windows 11, and I've faced the same issue.

I could get the compilation to succeed by following these steps. Basically, it would seem that the libraries are being looked for in the wrong place, and doing some symbolic links solves the issue. Assuming your libraries are also under /usr/lib/x86_64-linux-gnu, you have to create the following links:

sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread.so.0 /lib64/libpthread.so.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/libpthread_nonshared.a
sudo ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/libc_nonshared.a
sudo ln -s /usr/lib/x86_64-linux-gnu/libc.so /lib64/libc.so.6

Note that I have not tried running this yet, so I still have to verify whether this works.

Hope it helps 🙏

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

No branches or pull requests

2 participants