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

missing dependencies pkg-config: No such file or directory #191

Closed
coolman6942o opened this issue Jul 7, 2021 · 1 comment
Closed

missing dependencies pkg-config: No such file or directory #191

coolman6942o opened this issue Jul 7, 2021 · 1 comment

Comments

@coolman6942o
Copy link

Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing openssl.pc' to the PKG_CONFIG_PATH environment variable No package 'openssl' found Package openssl was not found in the pkg-config search path. Perhaps you should add the directory containing openssl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'openssl' found
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcapngtool.d -o hcxpcapngtool hcxpcapngtool.c -lz -DVERSION_TAG="6.2.0-39-g8e8718f" -DVERSION_YEAR="2021" -DWANTZLIB
hcxpcapngtool.c:20:10: fatal error: openssl/conf.h: No such file or directory
20 | #include <openssl/conf.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:117: hcxpcapngtool] Error 1

@ZerBea
Copy link
Owner

ZerBea commented Jul 7, 2021

gcc told you that the development files are not present on your system and you have to install them to let hcxtools compile.
What distribution do you use?

The reqirements are described in the README.md:

Requirements
--------------
* Linux (recommended Arch Linux, but other distros should work, too (no support for other distributions).
* gcc 10 recommended (deprecated versions are not supported: https://gcc.gnu.org/)
* libopenssl and openssl-dev installed
* librt and librt-dev installed (should be installed by default)
* zlib and zlib-dev installed (for gzip compressed cap/pcap/pcapng files)
* libcurl and curl-dev installed (used by whoismac and wlancap2wpasec)
* libpthread and pthread-dev installed (used by hcxhashcattool)
* pkg-config installed

To install requirements on Kali use the following 'apt-get install pkg-config libcurl4-openssl-dev libssl-dev zlib1g-dev'
If you decide to compile latest git head, make sure that your distribution is updated on latest version.

There is no need to change my "PKG_CONFIG_PATH" environment variable or to add a directory namend "openssl.pc"

Please read more here:
#189
#188
#178
#174
#132

hcxtools compile fine if all dependencies are installed:

$ make
mkdir -p .deps
cc -O3 -Wall -Wextra -std=gnu99    -MMD -MF .deps/hcxpcapngtool.d -o hcxpcapngtool hcxpcapngtool.c -lssl -lcrypto  -lz   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99    -MMD -MF .deps/hcxhashtool.d -o hcxhashtool hcxhashtool.c -lssl -lcrypto  -lcurl   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99   -MMD -MF .deps/hcxpsktool.d -o hcxpsktool hcxpsktool.c -lssl -lcrypto   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99   -MMD -MF .deps/hcxpmktool.d -o hcxpmktool hcxpmktool.c -lssl -lcrypto   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99   -MMD -MF .deps/hcxeiutool.d -o hcxeiutool hcxeiutool.c   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99   -MMD -MF .deps/hcxwltool.d -o hcxwltool hcxwltool.c   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99   -MMD -MF .deps/hcxhash2cap.d -o hcxhash2cap hcxhash2cap.c   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99    -MMD -MF .deps/wlancap2wpasec.d -o wlancap2wpasec wlancap2wpasec.c -lssl -lcrypto  -lcurl   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99    -MMD -MF .deps/whoismac.d -o whoismac whoismac.c -lssl -lcrypto  -lcurl   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99   -MMD -MF .deps/hcxpmkidtool.d -o hcxpmkidtool hcxpmkidtool.c -lpthread -lssl -lcrypto   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99   -MMD -MF .deps/hcxhashcattool.d -o hcxhashcattool hcxhashcattool.c -lpthread -lssl -lcrypto   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99   -MMD -MF .deps/hcxmactool.d -o hcxmactool hcxmactool.c   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB
cc -O3 -Wall -Wextra -std=gnu99   -MMD -MF .deps/hcxessidtool.d -o hcxessidtool hcxessidtool.c   -DVERSION_TAG=\"6.2.0-39-g8e8718f\" -DVERSION_YEAR=\"2021\" -DWANTZLIB

and installs fine:

$ sudo make install
install -D -m 0644 manpages/hcxpcapngtool.1 /usr/local/share/man/man1/hcxpcapngtool.1
install -D -m 0755 hcxpcapngtool /usr/local/bin/hcxpcapngtool
install -D -m 0644 manpages/hcxhashtool.1 /usr/local/share/man/man1/hcxhashtool.1
install -D -m 0755 hcxhashtool /usr/local/bin/hcxhashtool
install -D -m 0644 manpages/hcxpsktool.1 /usr/local/share/man/man1/hcxpsktool.1
install -D -m 0755 hcxpsktool /usr/local/bin/hcxpsktool
install -D -m 0755 hcxpmktool /usr/local/bin/hcxpmktool
install -D -m 0755 hcxeiutool /usr/local/bin/hcxeiutool
install -D -m 0755 hcxwltool /usr/local/bin/hcxwltool
install -D -m 0644 manpages/hcxhash2cap.1 /usr/local/share/man/man1/hcxhash2cap.1
install -D -m 0755 hcxhash2cap /usr/local/bin/hcxhash2cap
install -D -m 0644 manpages/wlancap2wpasec.1 /usr/local/share/man/man1/wlancap2wpasec.1
install -D -m 0755 wlancap2wpasec /usr/local/bin/wlancap2wpasec
install -D -m 0755 whoismac /usr/local/bin/whoismac
install -D -m 0755 hcxpmkidtool /usr/local/bin/hcxpmkidtool
install -D -m 0755 hcxhashcattool /usr/local/bin/hcxhashcattool
install -D -m 0755 hcxmactool /usr/local/bin/hcxmactool
install -D -m 0755 hcxessidtool /usr/local/bin/hcxessidtool

Closed this issue report, because it is related to missing dependencies of your distribution, but you can still ask your questions related to hcxtools here.

@ZerBea ZerBea closed this as completed Jul 7, 2021
@ZerBea ZerBea changed the title can dont down load error issue (I nead help now) missing dependencies pkg-config: No such file or directory Jul 7, 2021
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

2 participants