seveas / python-prctl

Wrapping prctl for python

Home Page:http://packages.python.org/python-prctl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workaround for failing install on CentOS

sytham opened this issue · comments

Hi, when I pip install this on CentOS, I get a fatal error on #include <sys/capability.h> (no such file or directory).

I worked around this by cloning from github and running

python setup.py build build_ext -n -I/usr/include
python setup.py install build_ext -n -I/usr/include

Actually, that doesn't seem to have worked entirely. When trying to import, this happens:

Python 2.7.15 |Anaconda, Inc.| (default, Oct 10 2018, 21:32:13)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import prctl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "prctl.py", line 5, in <module>
    import _prctl # The C interface
ImportError: No module named _prctl

Any suggestions?

Using build_ext -I/usr/include -L/usr/lib64 fixed the problem.