linux configure: error: xml2-config not found. Please check your libxml2 installation
来源:互联网 发布:美丽折淘宝客辅助器 编辑:程序博客网 时间:2024/05/21 09:40
问题出现:
下载并安装源码包的时候
问题包链接:
php5.3.22源码包
问题引申:
linux系统安装文件分为:源码包(tar.gz)和非源码包(rpm,deb,非源码的tar.gz),安装源码包需要进入解压目录。笔者解压目录为:/home/ccc/Downloads/php5.3.22
1. 使用cd命令进入php5.3.22后,查看文件夹内容,大部分都会存在INSTALL文件和README文件,在README文件中会有软件安装的详细步骤。在此很多和我一样的新手会犯同样的错误:不进入该解压文件目录/home/ccc/Downloads/php5.3.22便执行configure命令,这样会导致安装出现莫名的错误,建议进入。
2.设置安装目录 sudo ./configure --prefix=你的安装路径
(1)rpm或deb包的安装目录在软件完成开发时便有默认,因此无需更改。
(2) 源码包将其设置为:/usr/local/ (一般情况下)
执行命令
完成后在解压目录将会自动生成MakeFile.
(3).make此过程时间较长取决于安装包。
(4).如果make命令没产生错误,则 make install完成安装。一旦make命令有错误,则可以使用make clean清除编译make所产生的所有文件。因为在执行make install前,所有的操作均未写入你真正定义的安装目录中,即笔者定义的/usr/local/php5.3.22/.
问题出现:
提示:configure: error: xml2-config not found. Please check your libxml2 installation
解决方法:
执行 sudo apt-get install libxml2
提示成功或者已存在后,再次执行
如果还出现configure: error: xml2-config not found. Please check your libxml2 installation错误,则可能是缺少libxml2-dev。
执行sudo apt-get install libxml2-dev。
成功后即可顺利安装php5.3.22.
以上问题只是一个例子,遇到类似问题只需类似解决即可。
问题补充:
虽然每个软件都会有非源码包和源码包,那我们该安装哪个呢?
其实取决于你要干什么。如果你是服务器,且性能要求比较高,则推荐源码包。
如果你是pc,自己使用即可,则推荐非源码包
- linux configure: error: xml2-config not found. Please check your libxml2 installation
- linux configure: error: xml2-config not found. Please check your libxml2 installation
- error: xml2-config not found. Please check your libxml2 installation
- PHP安装错误 configure: error: xml2-config not found. Please check your libxml2 installation.
- PHP安装错误 configure: error: xml2-config not found. Please check your libxml2 installation.
- configure: error: xml2-config not found. Please check your libxml2 installation
- configure: error: xml2-config not found. Please check your libxml2 installation.
- configure: error: xml2-config not found. Please check your libxml2 installation
- configure: error: xml2-config not found. Please check your libxml2 installation
- php安装configure error xml2-config not found. please check your libxml2 installation
- php configure 报错 error: xml2-config not found. Please check your libxml2 installation
- PhP 常见安装错误configure error xml2-config not found. please check your libxml2 installation
- configure: error: xml2-config not found. Please check your libxml2 installation
- Centos下PHP报错:configure error xml2-config not found. please check your libxml2 installation
- configure: error: xml2-config not found. Please check your libxml2 installation
- configure: error: xml2-config not found. Please check your libxml2 installation
- configure: error: xml2-config not found. Please check your libxml2 installation.
- PHP之——configure: error: xml2-config not found. Please check your libxml2 installation
- 使用JsonCpp读写Json数据
- 软件工程之二 俄罗斯方块
- 前台防止表单重复提交的方法。Jquery、js
- OC-消息通知
- javascript String 转 Date备注
- linux configure: error: xml2-config not found. Please check your libxml2 installation
- android的窗口机制分析------UI管理系统
- 给 Xen 虚拟机添加一个网络接口
- 在ListView中添加item为WebView
- asp.net web api帮助生成插件
- (转)网络采集软件核心技术剖析系列(1)---如何使用C#语言获取博客园某个博主的全部随笔链接及标题
- Java 异常处理的误区和经验总结
- linux(Ubuntu)安装QQ2013
- Zend Framework 2 : Move out your listeners from Module class