Mac installs the php Swoole extension and appears Enable openssl support, require openssl library or fatal error:’openssl/ssl.h’ file not found

When installing php Swoole extend Mac Enable openssl support, require openssl libraryor fatal error: 'openssl/ssl.h' file not foundwhen specifying the opensslpath just fine

./configure --with-openssl-dir=/usr/local/opt/openssl@1.1 --enable-http2 --with-php-config=/Applications/MAMP/bin/php/php7.4.2/bin/php-config

The OpenSSL installed by brew is by default /usr/local/Cellar/openss/version, and I will report fatal error: 'openssl/ssl.h' file not foundan error after using it . Probably my openssl installation path is in/usr/local/opt/[email protected]

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *