标签:
编译参数:./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
提示缺少apxs:
在Ubuntu中,采用
1 sudo apt-get install apache2
安装apache服务后,是不会带Apxs,需要安装 apache2-dev。其命令是:
1 sudo apt-get install apache2-dev
安装完后查看安装的路径:find / -name ‘apxs2‘
configure: error: Cannot find OpenSSL‘s <evp.h>
1 sudo apt-get install libcurl4-openssl-dev pkg-config
然后继续使用--with-openssl 不用带路径
configure: error: freetype-config not found.
解决办法如下:
1 apt-get -y install libfreetype6-dev
configure: error: Cannot find ldap libraries in /usr/lib
标签:
原文地址:http://www.cnblogs.com/yangxunwu1992/p/5574918.html