cannot find '/lib64/libpthread.so.0' when installing sysv_ipc

Viewed 23

when I pip install sysv_ipc in an anaconda3 environment, some error occurs:

it says : cannot find /lib64/libpthread.so.0 cannot find /usr/lib64/libpthread_nonshared.a

I have re-installed cmake, and it doesn't solve the problems

So I was wondering if someone have some clues?

Thank you very much!

Collecting sysv_ipc
  Using cached sysv_ipc-1.1.0.tar.gz (99 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: sysv_ipc
  Building wheel for sysv_ipc (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'sysv_ipc' extension
      creating build
      creating build/temp.linux-x86_64-3.8
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c common.c -o build/temp.linux-x86_64-3.8/common.o
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c memory.c -o build/temp.linux-x86_64-3.8/memory.o
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c mq.c -o build/temp.linux-x86_64-3.8/mq.o
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c semaphore.c -o build/temp.linux-x86_64-3.8/semaphore.o
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c sysv_ipc_module.c -o build/temp.linux-x86_64-3.8/sysv_ipc_module.o
      creating build/lib.linux-x86_64-3.8
      gcc -pthread -shared -B /opt/anaconda1anaconda2anaconda3/compiler_compat -L/opt/anaconda1anaconda2anaconda3/lib -Wl,-rpath=/opt/anaconda1anaconda2anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.8/common.o build/temp.linux-x86_64-3.8/memory.o build/temp.linux-x86_64-3.8/mq.o build/temp.linux-x86_64-3.8/semaphore.o build/temp.linux-x86_64-3.8/sysv_ipc_module.o -o build/lib.linux-x86_64-3.8/sysv_ipc.cpython-38-x86_64-linux-gnu.so
      /root/anaconda3/envs/convnext/bin/../lib/gcc/x86_64-conda-linux-gnu/12.1.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find /lib64/libpthread.so.0
      /root/anaconda3/envs/convnext/bin/../lib/gcc/x86_64-conda-linux-gnu/12.1.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a
      collect2: error: ld returned 1 exit status
      error: command '/root/anaconda3/envs/convnext/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for sysv_ipc
  Running setup.py clean for sysv_ipc
Failed to build sysv_ipc
Installing collected packages: sysv_ipc
  Running setup.py install for sysv_ipc ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for sysv_ipc did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      running install
      /root/anaconda3/envs/convnext/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      building 'sysv_ipc' extension
      creating build
      creating build/temp.linux-x86_64-3.8
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c common.c -o build/temp.linux-x86_64-3.8/common.o
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c memory.c -o build/temp.linux-x86_64-3.8/memory.o
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c mq.c -o build/temp.linux-x86_64-3.8/mq.o
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c semaphore.c -o build/temp.linux-x86_64-3.8/semaphore.o
      gcc -pthread -B /opt/anaconda1anaconda2anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/convnext/include/python3.8 -c sysv_ipc_module.c -o build/temp.linux-x86_64-3.8/sysv_ipc_module.o
      creating build/lib.linux-x86_64-3.8
      gcc -pthread -shared -B /opt/anaconda1anaconda2anaconda3/compiler_compat -L/opt/anaconda1anaconda2anaconda3/lib -Wl,-rpath=/opt/anaconda1anaconda2anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.8/common.o build/temp.linux-x86_64-3.8/memory.o build/temp.linux-x86_64-3.8/mq.o build/temp.linux-x86_64-3.8/semaphore.o build/temp.linux-x86_64-3.8/sysv_ipc_module.o -o build/lib.linux-x86_64-3.8/sysv_ipc.cpython-38-x86_64-linux-gnu.so
      /root/anaconda3/envs/convnext/bin/../lib/gcc/x86_64-conda-linux-gnu/12.1.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find /lib64/libpthread.so.0
      /root/anaconda3/envs/convnext/bin/../lib/gcc/x86_64-conda-linux-gnu/12.1.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a
      collect2: error: ld returned 1 exit status
      error: command '/root/anaconda3/envs/convnext/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> sysv_ipc

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
0 Answers
Related