1、安装php预编译时报错:no package ‘openssl’ found
2、解决方法:
1.安装epel-release扩展源
[root@node2 ~]# yum install -y epel-release
2.安装openssl
[root@node2 ~]# yum install -y openssl*
3.再次进行预编译,发现已经解决了
[root@node2 php-8.1.9]# ./configure --prefix=/usr/local/php8.1.9 --enable-mysqlnd --with-mysqli=mysqlnd--with-pdo-mysql=mysqlnd --with-openssl --enable-fpm --enable-sockets--enable-gd --with-zlib --enable-sysvshm --enable-mbstring --with-freetype--with-expat --enable-xml --with-mhash --with-config-file-path=/etc --with-config-file-scan-dir=/usr/local/php8.1.9/etc/--with-bz2 --with-jpeg