編譯安裝php的openssl元件時遇到 libssl not found解決辦法

gb4215287發表於2017-10-10

centos上編譯安裝完php之後發現沒有安裝openssl元件,於是用phpize 增加openssl

到php原始碼目錄下的ext目錄中,找到openssl目錄

php/bin/phpize

./configure --with-openssl --with-php-config= php/bin/php-config

編譯的過程中突然跳出錯誤提示:

configure: error: libssl not found!


解決這個錯誤很簡單,只要將openssl-dev 包裝上即可。

yum -y install openssl-devel    


再重新編譯 成功。


來源:http://blog.csdn.net/neubuffer/article/details/17047233

相關文章