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
再重新编译 成功。