I'm trying to install posix_ipc on my linux machine (Ubuntu 20.04.6 LTS; python 3.7.16; in conda venv) but am having some difficulty. I've cloned the repository and tried installing w/ setup.py and get the following:
...~/Documents/posix_ipc$ python setup.py install
******************************************************************************
* Setup can't determine if it needs to link to the realtime libraries on your
* system, so it will default to 'no' which may not be correct.
*
* Please report this message and your operating system info to the package
* maintainer listed in the README file.
******************************************************************************
******************************************************************************
* Setup can't determine the value of PAGE_SIZE on your system, so it will
* default to 4096 which may not be correct.
*
* Please report this message and your operating system info to the package
* maintainer listed in the README file.
******************************************************************************
running install
/home/marcel/anaconda3/envs/synapse/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
/home/marcel/anaconda3/envs/synapse/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
running bdist_egg
running egg_info
writing posix_ipc.egg-info/PKG-INFO
writing dependency_links to posix_ipc.egg-info/dependency_links.txt
writing top-level names to posix_ipc.egg-info/top_level.txt
reading manifest file 'posix_ipc.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt' under directory 'demo3'
warning: no files found matching '*.txt' under directory 'demo4'
warning: no files found matching '*.txt' under directory 'demo5'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
adding license file 'LICENSE'
writing manifest file 'posix_ipc.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'posix_ipc' extension
gcc -pthread -B /home/marcel/anaconda3/envs/synapse/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/marcel/anaconda3/envs/synapse/include/python3.7m -c posix_ipc_module.c -o build/temp.linux-x86_64-cpython-37/posix_ipc_module.o
error: command 'gcc' failed: No such file or directory: 'gcc'
I've also tried pip install posix_ipc, but this also doesn't work:
~/Documents/posix_ipc$ pip install posix_ipc
Collecting posix_ipc
Using cached posix_ipc-1.1.1.tar.gz (94 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: posix_ipc
Building wheel for posix_ipc (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
******************************************************************************
* Setup can't determine if it needs to link to the realtime libraries on your
* system, so it will default to 'no' which may not be correct.
*
* Please report this message and your operating system info to the package
* maintainer listed in the README file.
******************************************************************************
******************************************************************************
* Setup can't determine the value of PAGE_SIZE on your system, so it will
* default to 4096 which may not be correct.
*
* Please report this message and your operating system info to the package
* maintainer listed in the README file.
******************************************************************************
running bdist_wheel
running build
running build_ext
building 'posix_ipc' extension
creating build
creating build/temp.linux-x86_64-cpython-37
gcc -pthread -B /home/marcel/anaconda3/envs/synapse/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/marcel/anaconda3/envs/synapse/include/python3.7m -c posix_ipc_module.c -o build/temp.linux-x86_64-cpython-37/posix_ipc_module.o
error: command 'gcc' failed: No such file or directory: 'gcc'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for posix_ipc
Running setup.py clean for posix_ipc
Failed to build posix_ipc
Installing collected packages: posix_ipc
Running setup.py install for posix_ipc ... error
error: subprocess-exited-with-error
× Running setup.py install for posix_ipc did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
******************************************************************************
* Setup can't determine if it needs to link to the realtime libraries on your
* system, so it will default to 'no' which may not be correct.
*
* Please report this message and your operating system info to the package
* maintainer listed in the README file.
******************************************************************************
******************************************************************************
* Setup can't determine the value of PAGE_SIZE on your system, so it will
* default to 4096 which may not be correct.
*
* Please report this message and your operating system info to the package
* maintainer listed in the README file.
******************************************************************************
running install
/home/marcel/anaconda3/envs/synapse/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_ext
building 'posix_ipc' extension
creating build
creating build/temp.linux-x86_64-cpython-37
gcc -pthread -B /home/marcel/anaconda3/envs/synapse/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/marcel/anaconda3/envs/synapse/include/python3.7m -c posix_ipc_module.c -o build/temp.linux-x86_64-cpython-37/posix_ipc_module.o
error: command 'gcc' failed: No such file or directory: 'gcc'
[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.
╰─> posix_ipc
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Hi there,
I'm trying to install posix_ipc on my linux machine (Ubuntu 20.04.6 LTS; python 3.7.16; in conda venv) but am having some difficulty. I've cloned the repository and tried installing w/ setup.py and get the following:
I've also tried pip install posix_ipc, but this also doesn't work:
Thanks for any advice!