ZerBea / hcxtools

A small set of tools to convert packets from capture files to hash files for use with Hashcat or John the Ripper.
MIT License
2.02k stars 392 forks source link

fatal error: openssl/core.h: No such file or directory #302

Closed do-ki closed 1 year ago

do-ki commented 1 year ago

got this error when compiling in Debian buster dependencies has been installed.

pi@raspberry:/opt/hcxtools $ sudo make
cc -O3 -Wall -Wextra -Wpedantic -std=gnu99    -MMD -MF .deps/hcxpcapngtool.d -o hcxpcapngtool hcxpcapngtool.c -lssl -lcrypto -lz  -DVERSION_TAG=\"6.3.1-53-g747e304\" -DVERSION_YEAR=\"2023\" -DWANTZLIB
hcxpcapngtool.c:27:10: fatal error: openssl/core.h: No such file or directory
 #include <openssl/core.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:96: hcxpcapngtool] Error 1
do-ki commented 1 year ago

the lastest version does not support older OS.

ZerBea commented 1 year ago

Correct. But it shouldn't be a problem, because the current version (Bookworm) uses OpenSSL 3.0 and hcxtools compile fine. https://packages.debian.org/bookworm/openssl

Salty-Coder commented 1 year ago

Im having this same issue... image

Using Raspberry Pi Zero W Rev 1.1

ZerBea commented 1 year ago

hcxtools moved to OpenSSL 3.0. From now on it is mandatory that libopenssl >= 3.0 and openssl-dev >= 3.0 is installed. This is not the case on your system and make told you that the header file core.h is missing on your system. You have to update to latest OpenSSL.

That is mentioned in README.md (section requirements), too: * libopenssl (>= 3.0) and openssl-dev installed Additional it is mentioned in changelog:

10.03.2023
==========
release v6.2.8
moved to EVP API 3.0 (from now on OpenSSL >= 3.0 is mandatory)
Salty-Coder commented 1 year ago

hcxtools moved to OpenSSL 3.0. From now on it is mandatory that libopenssl >= 3.0 and openssl-dev >= 3.0 is installed.

This is not the case on your system and make told you that the header file core.h is missing on your system.

You have to update to latest OpenSSL.

That is mentioned in README.md (section requirements), too:

`* libopenssl (>= 3.0) and openssl-dev installed

`

Additional it is mentioned in changelog:


10.03.2023

==========

release v6.2.8

moved to EVP API 3.0 (from now on OpenSSL >= 3.0 is mandatory)

I did actually install both of those packages. When trying to repeat install, it says it's already installed, but when running the commands you mentioned in another issue to find OpenSSL files, it doesn't find anything.

ZerBea commented 1 year ago

If update to openssl 3.x was successful the header file should be located here:

$ locate openssl/core.h
/usr/include/openssl/core.h