CentOS 7 installs the PHP 7.1.9 Process Validation command./configure--prefix=/usr/local/php--WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP/ETC-- With-mysql=/usr/bin/mysql--enable-bcmath--with-curl--enable-soap--enable-mbstring--with-mcrypt--WITH-GD-- With-openssl--enable-sockets--enable-fastcgi--ENABLE-FPM Error Summary Please reinstall LIBXML2-yum-y Install Libxml Reinstall OpenSSL-yum-y install openssl*-yum-y install curl-devel Please reinstall mcry PT---CENTOS7 The default Yum source does not have a Libmcrypt-devel package only with the help of the Epel yum source, so install Epel First, then install Libmcrypt sequentially
Yum Install-y epel-release
Yum Install-y libmcrypt-devel
Use./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-pdo-mysql=/usr/bin/ MySQL--enable-bcmath--with-curl--enable-soap--enable-mbstring--with-mcrypt--with-gd--with-openssl-- Enable-sockets--enable-cgi--ENABLE-FPM
No found Mysql_config
View MySQL installation status
Rpm-qa|grep MySQL
If you do not install the Mysql-devel installation yum install Mysql-devel there is
Pdo_mysql Configure failed, MYSQL 4.1 needed
----->--with-pdo-mysql=mysqlnd
./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-pdo-mysql=mysqlnd-- Enable-bcmath--with-curl--enable-soap--enable-mbstring--with-mcrypt--with-gd--with-openssl--enable-sockets-- enable-cgi--ENABLE-FPM
Installing PHP7.1.9 issues