-
Notifications
You must be signed in to change notification settings - Fork 283
fatal error: Python.h: No such file or directory #116
Comments
Solution - |
The problem is solved by changing the build.sh file gcc -Os -I /usr/include/python3.9 -o torghost torghost.c -lpython3.9 -lpthread -lm -lutil -ldl |
Yup there should be a validator in |
sudo ./build.sh 148 ⨯ 3 ⚙
Torghost installer v3.0
Installing prerequisites
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (20.1.1-2).
tor is already the newest version (0.4.4.6-1).
0 upgraded, 0 newly installed, 0 to remove and 311 not upgraded.
Installing dependencies
Requirement already satisfied: stem>=1.7.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (1.8.0)
Requirement already satisfied: requests>=2.22.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (2.24.0)
Requirement already satisfied: cython in /usr/lib/python3/dist-packages (from -r requirements.txt (line 3)) (0.29.21)
mkdir: cannot create directory ‘build’: File exists
Compiling /home/jonny/torghost/torghost.py
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/jonny/torghost/torghost.py
tree = Parsing.p_module(s, pxd, full_module_name)
[SUCCESS] Generated C code
torghost.c:4:10: fatal error: Python.h: No such file or directory
4 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
[ERROR] Build failed
The text was updated successfully, but these errors were encountered: