Compilation parameters:./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-mcrypt--with-mhash-- With-mysqli=mysqlnd--with-pdo-mysql=mysqlnd--with-gd--with-iconv--with-zlib--with-curl--with-jpeg-dir-- With-freetype-dir--with-apxs2=/usr/bin/apxs--with-openssl--with-xmlrpc--with-bz2--with-gettext--with-readline- -with-recode--with-ldap--with-fpm-user=nginx--with-fpm-group=nginx--enable-fpm--enable-cgi--enable-xml-- Enable-bcmath--enable-inline-optimization--enable-mbregex--enable-mbstring--enable-ftp--enable-gd-native-ttf-- Enable-pcntl--enable-sockets--enable-sysvmsg--enable-sysvshm--enable-shmop--enable-zip--enable-soap-- Enable-session--enable-opcache--ENABLE-CLI
Hint missing APXS:
In Ubuntu, the use of
1 sudo apt-get Install Apache2
After installing the Apache service, you will not bring APXS and need to install Apache2-dev. The command is:
1 sudo apt-get Install Apache2-dev
Check the installation path after installation: Find/-name ' APXS2 '
configure: error: Cannot find OpenSSL‘s <evp.h>
1 sudo apt-get install Libcurl4-openssl-dev pkg-config
Then continue using--with-openssl without path
Configure:error:freetype-config not found.
The solution is as follows:
1 apt-get -y install Libfreetype6-dev
Configure:error:Cannot Find LDAP Libraries In/usr/lib
Ubuntu compilation PHP7 Issues