Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

build and install error #620

Open
Cyotoe opened this issue Nov 7, 2021 · 10 comments
Open

build and install error #620

Cyotoe opened this issue Nov 7, 2021 · 10 comments

Comments

@Cyotoe
Copy link

Cyotoe commented Nov 7, 2021

i tried with python python2 python 2.7 as suggested neither worked

python2.7 setup.py clean build install                                                                                1 ⨯
running clean
removing 'build/temp.linux-x86_64-2.7' (and everything under it)
running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/cpyrit
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-qvkjJF/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1" -maes -mpclmul
cpyrit/_cpyrit_cpu.c:40:10: **fatal error:** pcap.h: No such file or directory
   40 | #include **<pcap.h>**
      |          **^~~~~~~~**
compilation terminated.
Failed to build; Compiling without AES-NI
building 'cpyrit._cpyrit_cpu' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-qvkjJF/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1"
cpyrit/_cpyrit_cpu.c:40:10: **fatal error:** pcap.h: No such file or directory
   40 | #include **<pcap.h>**
      |          **^~~~~~~~**
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

@vido89
Copy link

vido89 commented Nov 20, 2021

sudo apt-get install libpcap-dev

@ParrotCockatiel
Copy link

Dont work!

@mrfoxie
Copy link

mrfoxie commented Jan 10, 2022

sudo apt-get install libpcap-dev

 sudo python setup.py install
running install
running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-jQhGoO/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-armv7l-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1"
cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory
   32 | #include <Python.h>
      |          ^~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

same error while installing it

@jakbin
Copy link

jakbin commented Jul 2, 2022

@mrfoxie install package python2-dev

@jakbin
Copy link

jakbin commented Jul 2, 2022

@kpartho use python2.

@CafardNRV
Copy link

python2 or libcap doesn't work for me

@jakbin
Copy link

jakbin commented Jul 24, 2022

python2 or libcap doesn't work for me

You can't build successfully this because it's need older version of openssl.

@anwar-makhous
Copy link

sudo apt-get install libpcap0.8-dev

that worked for me

@anwar-makhous
Copy link

python2 or libcap doesn't work for me

You can't build successfully this because it's need older version of openssl.

I am using OpenSSL 3.0.2 on Mint and it's working for me

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

No branches or pull requests

8 participants
@vido89 @mrfoxie @anwar-makhous @jakbin @CafardNRV @Cyotoe @ParrotCockatiel and others