unable to install PythonDev
by curious_george from LinuxQuestions.org on (#5BYQG)
Hello I am a novice zeek/linux user.
When i run the following command, I continue to get the following error. Can you please help me ?
securitynik@securitynik-zeek:~$sudo apt-get install cmake make gcc g++ flex bison libpcap-dev libssl-dev python-dev swig zlib1g-dev
ERROR RECEIVED
-- Found SWIG: /usr/bin/swig4.0 (found version "4.0.1")
-- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Development) (found version "3.8")
-- Could NOT find PythonDev (missing: PYTHON_INCLUDE_DIR)
CMake Error at auxil/zeekctl/auxil/pysubnettree/CMakeLists.txt:29 (message):
Could not find prerequisite package 'PythonDev'
CMake Error at auxil/zeekctl/auxil/pysubnettree/CMakeLists.txt:31 (message):
Configuration aborted due to missing prerequisites
-- Configuring incomplete, errors occurred!
See also "/home/wajid/bro/build/CMakeFiles/CMakeOutput.log".
--------I ran following commands but I was not able to get the above issue resolved
george@ubuntu:~/bro$ sudo apt-get install cmake make gcc g++ flex bison libpcap-dev libssl-dev python-dev swig zlib1g-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python-dev-is-python2' instead of 'python-dev'
bison is already the newest version (2:3.5.1+dfsg-1).
cmake is already the newest version (3.16.3-1ubuntu1).
flex is already the newest version (2.6.4-6.2).
g++ is already the newest version (4:9.3.0-1ubuntu2).
gcc is already the newest version (4:9.3.0-1ubuntu2).
libpcap-dev is already the newest version (1.9.1-3).
make is already the newest version (4.2.1-1.2).
python-dev-is-python2 is already the newest version (2.7.17-4).
swig is already the newest version (4.0.1-5build1).
libssl-dev is already the newest version (1.1.1f-1ubuntu2.1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.2).
The following package was automatically installed and is no longer required:
libfprint-2-tod1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
george@ubuntu:~/bro$ sudo apt-get install python-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python-dev-is-python2' instead of 'python-dev'
python-dev-is-python2 is already the newest version (2.7.17-4).
The following package was automatically installed and is no longer required:
libfprint-2-tod1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
See also "/home/wajid/bro/build/CMakeFiles/CMakeError.log".
Also, before re-running configure, consider cleaning the cache (removing the build directory) via `make distclean`


When i run the following command, I continue to get the following error. Can you please help me ?
securitynik@securitynik-zeek:~$sudo apt-get install cmake make gcc g++ flex bison libpcap-dev libssl-dev python-dev swig zlib1g-dev
ERROR RECEIVED
-- Found SWIG: /usr/bin/swig4.0 (found version "4.0.1")
-- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Development) (found version "3.8")
-- Could NOT find PythonDev (missing: PYTHON_INCLUDE_DIR)
CMake Error at auxil/zeekctl/auxil/pysubnettree/CMakeLists.txt:29 (message):
Could not find prerequisite package 'PythonDev'
CMake Error at auxil/zeekctl/auxil/pysubnettree/CMakeLists.txt:31 (message):
Configuration aborted due to missing prerequisites
-- Configuring incomplete, errors occurred!
See also "/home/wajid/bro/build/CMakeFiles/CMakeOutput.log".
--------I ran following commands but I was not able to get the above issue resolved
george@ubuntu:~/bro$ sudo apt-get install cmake make gcc g++ flex bison libpcap-dev libssl-dev python-dev swig zlib1g-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python-dev-is-python2' instead of 'python-dev'
bison is already the newest version (2:3.5.1+dfsg-1).
cmake is already the newest version (3.16.3-1ubuntu1).
flex is already the newest version (2.6.4-6.2).
g++ is already the newest version (4:9.3.0-1ubuntu2).
gcc is already the newest version (4:9.3.0-1ubuntu2).
libpcap-dev is already the newest version (1.9.1-3).
make is already the newest version (4.2.1-1.2).
python-dev-is-python2 is already the newest version (2.7.17-4).
swig is already the newest version (4.0.1-5build1).
libssl-dev is already the newest version (1.1.1f-1ubuntu2.1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.2).
The following package was automatically installed and is no longer required:
libfprint-2-tod1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
george@ubuntu:~/bro$ sudo apt-get install python-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python-dev-is-python2' instead of 'python-dev'
python-dev-is-python2 is already the newest version (2.7.17-4).
The following package was automatically installed and is no longer required:
libfprint-2-tod1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
See also "/home/wajid/bro/build/CMakeFiles/CMakeError.log".
Also, before re-running configure, consider cleaning the cache (removing the build directory) via `make distclean`