I need to install the openssl-devel on Mac. But I've tried brew and macport both. Neither of them work.
And I have also googled this problem--- install openssl-devel on Mac. But, I did not find an exact answer.
Anyone met this kind of problem before?
Deploy the OpenSSL toolkit via the command line To install the OpenSSL toolkit and library on your Mac, you must open the Terminal application, go to the OpenSSL source folder, and follow the instructions from the INSTALL file included in the archive.
If your app depends on OpenSSL, you should compile OpenSSL yourself and statically link a known version of OpenSSL into your app. This use of OpenSSL is possible on both OS X and iOS.
this command solve my problem:
brew install [email protected]
cp /usr/local/opt/[email protected]/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/
This has changed with the latest verison of brew on Big Sur (11.5.1) on a Macbook M1 (just for completeness):
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With