usnistgov / nestor-tmp2

Quantifying tacit knowledge for investigatory analysis
Other
9 stars 5 forks source link

Can't install some modules, but others are fine. #51

Closed washedupx closed 5 years ago

washedupx commented 5 years ago

I'll start with saying im running kali linux on a VM. I'm very new to linux.

i type pip install NetfilterQueue (or with sudo) and i get this error: error: command 'i686-linux-gnu-gcc' failed with exit status 1 Failed building wheel for netfilterqueue
figure those are more important.

i've used these: sudo apt-get install python-dev sudo apt-get update python-dev it hasn't helped. it's all up to date.

i've tried to download via pycham's "+" button in settings under projects and i get this:

netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory

proposed solution: Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/root/PycharmProjects/net_cut/venv/bin/python'.

Collecting NetfilterQueue Using cached https://files.pythonhosted.org/packages/39/c4/8f73f70442aa4094b3c37876c96cddad2c3e74c058f6cd9cb017d37ffac0/NetfilterQueue-0.8.1.tar.gz Installing collected packages: NetfilterQueue Running setup.py install for NetfilterQueue: started Running setup.py install for NetfilterQueue: finished with status 'error' Complete output from command /root/PycharmProjects/net_cut/venv/bin/python -u -c "import setuptools, tokenize;file='/tmp/pycharm-packaging/NetfilterQueue/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-drv2o8uk/install-record.txt --single-version-externally-managed --compile --install-headers /root/PycharmProjects/net_cut/venv/include/site/python3.7/NetfilterQueue: running install running build running build_ext building 'netfilterqueue' extension creating build creating build/temp.linux-i686-3.7 i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/root/PycharmProjects/net_cut/venv/include -I/usr/include/python3.7m -c netfilterqueue.c -o build/temp.linux-i686-3.7/netfilterqueue.o netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory

include "libnfnetlink/linux_nfnetlink.h"

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/root/PycharmProjects/net_cut/venv/bin/python -u -c "import setuptools, tokenize;file='/tmp/pycharm-packaging/NetfilterQueue/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-drv2o8uk/install-record.txt --single-version-externally-managed --compile --install-headers /root/PycharmProjects/net_cut/venv/include/site/python3.7/NetfilterQueue" failed with error code 1 in /tmp/pycharm-packaging/NetfilterQueue/ You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command

run the: pip install --upgrade pip get this: Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (18.1) ############ The only way i can download the file is directly from github. So i have all the files i need, but i have no idea how to make them work in my IDE after that on linux. On my windows i'd just drop the folder in.. but that doesn't seem to work on linux =\ nor is there the folder i'd usually drop it in to if i had a similar bug. Thank you so much. I've been stuck on this for literally 2 days straight, digging through these forums..

Full error message here after i sudo pip install netfilterqueue:

Collecting netfilterqueue Using cached https://files.pythonhosted.org/packages/39/c4/8f73f70442aa4094b3c37876c96cddad2c3e74c058f6cd9cb017d37ffac0/NetfilterQueue-0.8.1.tar.gz Building wheels for collected packages: netfilterqueue Running setup.py bdist_wheel for netfilterqueue ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-ajZfDT/netfilterqueue/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-93pkVV --python-tag cp27: running bdist_wheel running build running build_ext skipping 'netfilterqueue.c' Cython extension (up-to-date) building 'netfilterqueue' extension creating build creating build/temp.linux-i686-2.7 i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-d9UXBQ/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c netfilterqueue.c -o build/temp.linux-i686-2.7/netfilterqueue.o netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory

include "libnfnetlink/linux_nfnetlink.h"

        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. error: command 'i686-linux-gnu-gcc' failed with exit status 1


Failed building wheel for netfilterqueue Running setup.py clean for netfilterqueue Failed to build netfilterqueue Installing collected packages: netfilterqueue Running setup.py install for netfilterqueue ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-ajZfDT/netfilterqueue/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-1FHc9E/install-record.txt --single-version-externally-managed --compile: running install running build running build_ext skipping 'netfilterqueue.c' Cython extension (up-to-date) building 'netfilterqueue' extension creating build creating build/temp.linux-i686-2.7 i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-d9UXBQ/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c netfilterqueue.c -o build/temp.linux-i686-2.7/netfilterqueue.o netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory

include "libnfnetlink/linux_nfnetlink.h"

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-ajZfDT/netfilterqueue/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-1FHc9E/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ajZfDT/netfilterqueue/ root@kali:~/Downloads/Python-3.7.1# Failed building wheel for netfilterqueue