当我尝试从Ubuntu上的源代码安装php 5.3 stable(从http://www.php.net/downloads.php下载压缩的安装文件)并运行时出现./configure此错误:
configure: error: xml2-config not found. Please check your libxml2 installation.
Run Code Online (Sandbox Code Playgroud) 我正在使用ubuntu 13.10 x64,我正在尝试构建php 5.3.8,我下载了源代码并运行configure:
./configure --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
--with-tidy --with-config-file-path=/usr/local/php/conf
--with-config-file-scan-dir=/usr/local/php/conf.d --enable-debug --with-openssl
--with-kerberos --with-zlib --enable-calendar --with-curl --with-curlwrappers
--with-enchant --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr
--with-png-dir=/usr --with-vpx-dir=/usr --with-freetype-dir=/usr --with-t1lib
--enable-exif --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext
--with-gmp --with-mhash --enable-intl --enable-mbstring --with-mcrypt --with-mysql
--with-mysqli --enable-pcntl --with-pdo-mysql --with-pdo-pgsql
--with-pgsql --with-pspell --with-libedit --with-readline --enable-shmop
--with-snmp --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvshm
--with-xsl --enable-zip --with-pear --enable-zend-signals --enable-maintainer-zts
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误: configure: error: Unable to locate gmp.h
我已安装libgmp-dev并libgmp3-dev使用sudo apt-get install libgmp-dev libgmp3-dev但仍无法成功运行配置,如何解决此问题?
如果我跑,locate gmp.h我可以在这里看到它:
/usr/include/linux/igmp.h
/usr/include/netinet/igmp.h …Run Code Online (Sandbox Code Playgroud) 我用以下命令配置了php:
./configure \
--prefix=/opt/phpfcgi-5.3.28 \
--with-pdo-pgsql \
--with-zlib-dir \
--with-freetype-dir=/usr/include/freetype2 \
--with-libpng-dir=/usr/include/libpng \
--with-xpm-dir=/usr \
--enable-mbstring \ls \
--with-libxml-dir=/usr \
--enable-soap \
--enable-calendar \
--with-curl \
--with-mcrypt \
--with-zlib \
--with-gd \
--with-pgsql \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-zlib \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-pcntl \
--enable-mbregex \
--with-mhash \
--enable-zip \
--with-pcre-regex \
--with-mysql \
--with-mysql-dir=/etc/mysql/ \
--with-pdo-mysql \
--with-mysqli \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-gd-native-ttf \
--with-openssl \
--with-libdir=/lib/x86_64-linux-gnu \
--enable-ftp \
--with-kerberos \ …Run Code Online (Sandbox Code Playgroud)