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

install issue OSX 10.14.6 #10

Open
stephlinux opened this issue Apr 15, 2021 · 1 comment
Open

install issue OSX 10.14.6 #10

stephlinux opened this issue Apr 15, 2021 · 1 comment

Comments

@stephlinux
Copy link

I'm trying to install cowpatty 4.6 on OSX 10.14.6 and I get this error:

clang -pipe -Wall -DOPENSSL -O2 -g3 -ggdb -c -o md5.o md5.c
md5.c:20:10: fatal error: 'openssl/md5.h' file not found
#include <openssl/md5.h>
^~~~~~~~~~~~~~~
1 error generated.
make: *** [md5.o] Error 1

I have OpenSSL installed, and have also installed libssl-dev & libpcap-dev. Any ideas?

@jay-kim-kor
Copy link

If you still have this problem OR anyone who has this problem, you can fix it by following steps.

  1. Make sure to check requirements is installed.
xcode-select install
brew install openssl
  1. Create symlinks for openssl
    (In this example, was used openssl 3
    Also, if you use different openssl version, you can find location by brew info openssl)
sudo mkdir -p /usr/local/include
ln -s /opt/homebrew/opt/openssl@3 /usr/local/opt
  1. Add additional CFLAGS(don't remove any existing code) in Makefile
CFLAGS		+= -L/usr/local/opt/openssl@3/lib -I/usr/local/opt/openssl@3/include
  1. Run make in cowpatty directory.

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