ubuntu安装PHP时候出错--xml2-config not found
2015-03-12 16:46
363 查看
后来 ,接着安装php时候,在configure后,又出现错误提示:error: xml2-config
not found. Please check your libxml2 installation.我又在网上搜了到了解决方法:
与编译MySQL时相同,这是由于系统缺少PHP所需的库文件导致的,根据提示,进行如下操作:
sudo apt-get install libxml2(按Tab键)
将会看到如下信息:
libxml2 libxml2-dev libxml2-headers libxml2-utils
这里需要安装的是libxml2-dev软件包(该软件为Ubuntu-Server自带的,需要使用Ubuntu-Server光盘安装),操作如下:
sudo apt-get install libxml2-dev
库文件安装完成后,重新配置PHP
编译完成后将会看到“Thank you for using PHP.”的字样,表明PHP已经配置成功了。
not found. Please check your libxml2 installation.我又在网上搜了到了解决方法:
与编译MySQL时相同,这是由于系统缺少PHP所需的库文件导致的,根据提示,进行如下操作:
sudo apt-get install libxml2(按Tab键)
将会看到如下信息:
libxml2 libxml2-dev libxml2-headers libxml2-utils
这里需要安装的是libxml2-dev软件包(该软件为Ubuntu-Server自带的,需要使用Ubuntu-Server光盘安装),操作如下:
sudo apt-get install libxml2-dev
库文件安装完成后,重新配置PHP
编译完成后将会看到“Thank you for using PHP.”的字样,表明PHP已经配置成功了。
相关文章推荐
- Ubuntu安装PHP时候出错--xml2-config not found
- ubuntu安装php出错: xml2-config not found
- 安装PHP时显示,xml2-config not found怎么办
- 编译php-5.6出错,xml2-config not found
- 编译php-5.5.15出错,xml2-config not found
- ubuntu安装mysql-python出错,EnvironmentError: mysql_config not found
- 编译php-5.5.15出错,xml2-config not found
- Ubuntu安装php的时候出错
- Ubuntu 编译安装php7时提示“freetype-config not found”
- ubuntu安装JDK时候出./install.sfx.2354: not found问题的解决方法
- ubuntu安装EnvironmentError: mysql_config not found错误
- PHP安装扩展,php-config出错
- Ubuntu13.04安装VMware9出错:Kernel Headers for version X.X.XX-XX-generic were not found
- ubuntu php composer 安装laravel出错
- 编译php-5.5.15出错,xml2-config not found
- 问题:PHP编译时,configure:error:xml2-config not found
- ubuntu pip安装MySQL-python报错mysql_config not found
- 源码安装PHP报错:error: xml2-config not found.
- ubuntu安装easy_install命令方法,mysql-python安装时EnvironmentError: mysql_config not found