fatal error: openssl/evp.h: No such file or directory

i run gcc bruteforce.c -o bruteforce -lcrypto

There is a header file #include <openssl/evp.h>The code perfectly works in another machine But it has the following error in my current PC.

bruteforce.c:1:25: fatal error: openssl/evp.h: No such file or directory compilation terminated.

4

2 Answers

The other answer is almost correct but only works if you have already solved the problem. It led me to this solution:

sudo apt install -y libssl-dev

Ask the packaging system:

walt@bat:~(0)$ dpkg -S /usr/include/openssl/evp.h
libssl-dev:amd64: /usr/include/openssl/evp.h
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like