cisco / joy

A package for capturing and analyzing network flow data and intraflow data, for network research, forensics, and security monitoring.
Other
1.31k stars 329 forks source link

configure error on Mac: can't find openSSL libcrypto file #255

Closed wtoxin closed 5 years ago

wtoxin commented 5 years ago

I tried to build the latest version on my Mac and had no idea how to handle the configure error:

checking for EVP_EncryptInit in -lcrypto... no configure: error: in `/Users/xin/Desktop/joy': configure: error: can't find openSSL libcrypto file

My openssl version is 1.1.1b. I followed the instructions to download the OpenSSL tarball and run the config script. I also tried to add --with-ssl-dir=... which was also effortless.

bhudson33 commented 5 years ago

configure is not finding libcrypto. Can you paste in the exact line you issued configure with? Also, locate the file libcrypto.a/libcrypto.so on your machine and paste that path here as well.

wtoxin commented 5 years ago

configure is not finding libcrypto. Can you paste in the exact line you issued configure with? Also, locate the file libcrypto.a/libcrypto.so on your machine and paste that path here as well.

Thanks. I finally found the right location --with-ssl-dir=/usr/local/opt/openssl which is the homebrew installation path. Alternatively, the following settings also work.

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"