sudo apt-get install -y libpcre3 libpcre3-dev zlib1g-dev
./configure --prefix=/usr/local/nginx make sudo make install sudo ln -s /usr/local/nginx/sbin/nginx /etc/init.d/nginx sudo /etc/init.d/nginx
http://lyp.cn/350_how-to-fix-php-compile-errors
What we are interested in here is libxml2-dev, let's install it then:php
sudo apt-get install libxml2-devmysql
The same procedure applies to all other missing libraries as well, so I will include only final install calls from now on.nginx
sudo apt-get install libpcre3-devsql
sudo apt-get install libbz2-devphp7
sudo apt-get install libcurl4-openssl-devapp
sudo apt-get install libdb4.8-devcurl
sudo apt-get install libjpeg-devpost
sudo apt-get install libpng12-devthis
sudo apt-get install libxpm-devurl
sudo apt-get install libfreetype6-dev
sudo apt-get install postgresql-server-dev-9.1
Make sure you check result of apt-cache search especially in case of this error, as there could be later version of PostgreSQL available.
sudo apt-get install libt1-dev
sudo apt-get install libgd2-xpm-dev
sudo apt-get install libgmp-dev
sudo apt-get install libmysqlclient-dev
sudo apt-get install libsasl2-dev
sudo apt-get install libmhash-dev
sudo apt-get install unixodbc-dev
sudo apt-get install freetds-dev
sudo apt-get install libpspell-dev
sudo apt-get install libsnmp-dev
sudo apt-get install libtidy-dev
sudo apt-get install libxslt1-dev
sudo apt-get install libmcrypt-dev
configure: error: Cannot find ldap.h
檢查: yum list openldap yum list openldap-devel
安裝 : yum install openldap yum install openldap-devel
./configure --enable-fpm --prefix=/usr/local/php7 --with-libxml --with-png --with-jpeg --with-freetype --with-gd --with-mcrypt --with-mysqli --with-pdo-mysqli --enable-mbstring=all --enable-pdo --with-cur