Mac 安裝php Swoole擴展出現 Enable openssl support, require openssl library 或者fatal error: 'openssl/ssl.h' file not found


Mac 安裝php Swoole擴展時出現 Enable openssl support, require openssl library 或者fatal error: 'openssl/ssl.h' file not found時,只需指定openssl路徑就好了

./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

brew 安裝的 OpenSSL 默認在 /usr/local/Cellar/openss/版本號,而我使用之后會報fatal error: 'openssl/ssl.h' file not found錯誤,大概我的openssl安裝路徑是在/usr/local/opt/openssl@1.1


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM