PHP安装错误 configure: error: xml2-config not found. Please check your libxml2 installation.

简介:
PHP安装错误 configure: error: xml2-config not found. Please check your libxml2 installation.
今天重新安装fedora core 5,重装mysql+apache+php,configure php的时候得到错误信息
<pre><code>./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache --with-mysql
configure: error: xml2-config not found. Please check your libxml2 installation.
</code></pre>
错误原因,xml2-config这个文件没找到。
/*我记得上一次装php时没有这个问题的,那么原因就出在我这次安装fc5,有很多东西没选上,所以总是出问题。*/
根据错误提示,安装libxml2。fc5的安装光盘上提供了很多rpm包,我的是dvd光盘,位置在/media/disk/Fedora/RPMS,
<pre><code>
cd /media/disk/Fedora/RPMS
ls *libxml*
 /*找到这两个有用的包, libxml2-2.6.23-1.2.i386.rpm  libxml2-devel-2.6.23-1.2.i386.rpm     */
rpm -ivh libxml2-2.6.23-1.2.i386.rpm 
/*提示我已经安装过了*/
rpm -ivh libxml2-devel-2.6.23-1.2.i386.rpm 
</code></pre>
现在我重新./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache --with-mysql
好了,没有问题了,
make
make install

安装完成


本文转自holy2009 51CTO博客,原文链接:http://blog.51cto.com/holy2010/360365

相关文章
|
8月前
|
PHP Windows
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
125 1
|
9月前
|
缓存 关系型数据库 MySQL
error: Failed dependencies: mariadb-connector-c-config is obsoleted by mysql-community-server-8.0.36-1.el7.x86_64 问题解决
error: Failed dependencies: mariadb-connector-c-config is obsoleted by mysql-community-server-8.0.36-1.el7.x86_64 问题解决
555 19
|
应用服务中间件 PHP nginx
PHP ERROR: Unable to create the PID file (/usr/var/run/php-fpm.pid).: No such file or directory (2)
PHP ERROR: Unable to create the PID file (/usr/var/run/php-fpm.pid).: No such file or directory (2)
374 1
|
10月前
|
Ubuntu PHP
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
186 1
|
11月前
|
JavaScript
Parsing error: No Babel config file detected for 。。
Parsing error: No Babel config file detected for 。。
212 3
|
11月前
|
前端开发
命令行创建React项目
命令行创建React项目
命令行创建React项目
|
11月前
|
NoSQL Redis
进行主从复制时出现的异常FATAL CONFIG FILE ERROR (Redis 6.2.6)Reading the configuration file
进行主从复制时出现的异常FATAL CONFIG FILE ERROR (Redis 6.2.6)Reading the configuration file
543 0
|
11月前
|
Kubernetes 容器
k8s-error execution phase upload-config/kubelet: Error writing Crisocket...
k8s-error execution phase upload-config/kubelet: Error writing Crisocket...
258 0
|
11月前
Parsing error: No Babel config file detected for XXXXX
Parsing error: No Babel config file detected for XXXXX
|
JSON 前端开发 PHP
dataType:'json'时post,总是调用error???附带php和json的一些坑
ajax是一个不错的东西 当dataType:'json'时提交,总是返回error 这是为什么? 经过折腾,终于发现因为要求的是json,返回的信息并不是json格式,因此总是出错
93 0

热门文章

最新文章

  • 1
    error: Failed dependencies: mariadb-connector-c-config is obsoleted by mysql-community-server-8.0.36-1.el7.x86_64 问题解决
    555
  • 2
    Spring Boot与Spring Cloud Config的集成
    309
  • 3
    若依修改标题和icon,在vue.config.js和.env.development进行修改
    683
  • 4
    若依修改,若依的com.ruoyi.framework.config在那?搜索文件使用ctrl+shift+f不用搜狗输入法,其他輸入法,用英文
    91
  • 5
    若依修改,若依部署在本地运行时的注意事项,后端连接了服务器,本地的vue.config.js要先改成localhost:端口号与后端匹配,部署的时候再改公网IP:端口号
    360
  • 6
    部署常用的流程,可以用后端,连接宝塔,将IP地址修改好,本地只要连接好了,在本地上前后端跑起来,前端能够跑起来,改好了config.js资料,后端修改好数据库和连接redis,本地上跑成功了,再改
    115
  • 7
    若依修改---重新部署项目注意事项,新文件初始化需要修改的地方,打包后的文件很难进行修改,如果想要不断修改项目,注意保存原项目,才可以不断修改,前端:在Vue.config.js文件中修改target
    397
  • 8
    若依修改之后,无法访问前端项目如何解决,只能访问后端的接口,我的接口8083,端不显示咋解决?在vue.config.js文件中的映射路径要跟后端匹配,到软件商店里找到Ngnix配置代理,设80不用加
    1137
  • 9
    文本vitepress,如何设置背景图,如何插入背景图,如何插入logo,为了放背景图片,我们要新建pubilc的文件夹,插入logo要在config.js中进行配置,注意细节,在添加背景时,注意格式
    290
  • 10
    文本,vitepress的使用,如何使用vitevitepress没有config.js该怎么办?这里使用vitepress进行手动配置,参考只爭朝夕不負韶華的文章
    140