centos6.2 linux安装php过程及配置错误处理 configure: error: xml2-config not found. Please check your libxml2 i
2012-07-10 14:26
846 查看
cd /usr/local/src
tar -zvxf php-5.3.10.tar.gz
cd php-5.3.10
mkdir -p /usr/local/php5 #建立php安装目录
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-gd --with-iconv
--with-freetype --with-jpeg --with-png --with-zlib --with-libxml --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-fastcgi
--enable-force-cgi-redirect --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic --enable-suhosin --enable-session --with-mcrypt
#配置
错误一:
configure: error: xml2-config not found. Please check your libxml2 installation
检查是否安装了libxm包
[root@XKWB3403 php-5.3.8]# rpm -qa |grep libxml2
libxml2-2.6.26-2.1.12
libxml2-python-2.6.26-2.1.12
重新安装libxml2和libxml2-devel包
yum install libxml2
yum install libxml2-devel -y
安装完之后查找xml2-config文件是否存在
[root@XKWB3403 php-5.3.8]# find / -name "xml2-config"
/usr/bin/xml2-config
错误二:configure: error: png.h not found.
tar -zvxf php-5.3.10.tar.gz
cd php-5.3.10
mkdir -p /usr/local/php5 #建立php安装目录
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-gd --with-iconv
--with-freetype --with-jpeg --with-png --with-zlib --with-libxml --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-fastcgi
--enable-force-cgi-redirect --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic --enable-suhosin --enable-session --with-mcrypt
#配置
错误一:
configure: error: xml2-config not found. Please check your libxml2 installation
检查是否安装了libxm包[root@XKWB3403 php-5.3.8]# rpm -qa |grep libxml2
libxml2-2.6.26-2.1.12
libxml2-python-2.6.26-2.1.12
重新安装libxml2和libxml2-devel包
yum install libxml2
yum install libxml2-devel -y
安装完之后查找xml2-config文件是否存在
[root@XKWB3403 php-5.3.8]# find / -name "xml2-config"
/usr/bin/xml2-config
错误二:configure: error: png.h not found.
相关文章推荐
- 在Linux下安装PHP过程中,编译时出现configure: error: libjpeg.(a|so) not found 错误的解决办法
- Linux(CentOS6.5)下编译安装PHP5.6.22时报错”configure: error: ZLIB extension requires gzgets in zlib”的解决方式(确定已经编译安装Zlib,并已经指定Zlib路径)
- Linux下安装过程中编译PHP时报错:configure: error: libjpeg.(a|so) not found
- 安装php过程中的错误和解决方式 configure: error: jpeglib.h not found
- Linux下安装过程中编译PHP时报错:configure: error: libjpeg.(a|so) not found
- Linux(Centos)Apache安装配置过程中可能出现的错误
- Linux下安装过程中编译PHP时报错:configure: error: libjpeg.(a|so) not found
- PHP安装错误 configure: error: xml2-config not found. Please check your libxml2 installation.
- PHP安装错误 configure: error: xml2-config not found. Please check your libxml2 installation.
- CentOS 5.2,Linux 2.6+ 内核 ,Apache+MySQL+PHP 安装及基本配置过程记录 && 将apache安装为系统服务
- Linux下安装过程中编译PHP时报错:configure: error: libjpeg.(a|so) not found
- Linux下安装过程中编译PHP时报错:configure: error: libjpeg.(a|so) not found
- PHP安装错误 configure: error: xml2-config not found. Please check your libxml2 installation.
- Linux下安装过程中编译PHP时报错:configure: error: jpeglib.h not found.
- PHP安装错误 configure: error: xml2-config not found. Please check your libxml2 installation.
- Linux下安装过程中编译PHP时报错:configure: error: libjpeg.(a|so) not found
- PHP安装错误 configure: error: xml2-config not found. Please check your libxml2 installation.
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH
- brew安装php70出现configure: error: Cannot find libz 错误解决方法