编译php-5.6出错,xml2-config not found

今天在centos上编译PHP-5.6

cd php-5.6
./configure --prefix=/usr/local/php5.6/ --with-apxs2=/usr/local/apache.2.2/bin/ apxs

返回错误:

checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation. 

说是libxml2没装,但是用yum安装时发现已经安装了

[[email protected] process]# yum install libxml2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Package libxml2-2.7.6-14.el6_5.2.i686 already installed and latest version
Nothing to do

查资料后发现原来还需要安装libxml2-devel,再次执行安装命令

yum install libxml2* -y 
时间: 2024-08-24 07:50:12

编译php-5.6出错,xml2-config not found的相关文章

【转】ubuntu64,ndk-r9 编译 ffmpeg 2.1.1的config文件

#!/bin/bash NDK_ROOT=/home/wjh/fox/android-ndk-r9c/ PREBUILT=${NDK_ROOT}toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64 PLATFORM=android-14 ARCH=--arch=arm ./configure --target-os=linux --arch=arm --disable-static --enable-shared --enable-

VIM+qmake编译示例程序HelloQt出错问题的解决(文件名一定要使用.cpp,否则就会默认使用gcc编译,当然通不过)

之前看到很多初学Qt的Linux友们在使用qmake编译第一个HelloQt或者HelloWorld程序时报错,并且始终找不到原因. 前几天我也遇到了同样的问题,我用的是<精通Qt4编程>书上的例子,将代码用Vim输入之后qmake,再make结果报错N行, 大部分是说什么什么为定义之类的,查了半天发现是只要把开头的几行#include<QtGui/..>里的文件包含进去就会出错, 但是不包含也不行,(后来发现网上不少人也在问这个问题,可是没说解决的),花了几个小时时间无果而终.

编译php5.6.1出错set --enable-opcache=no

环境:CENTOS6.5 PHP5.6.1 编译参数: ./configure --prefix=/usr/local/php56 --with-config-file-path=/usr/local/php56/etc --enable-inline-optimization --disable-rpath --enable-shared --enable-opcache --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-

编译php-5.5.15出错,xml2-config not found

今天在centos上编译php-5.5.15, [plain] view plaincopy cd php-5.5.15 ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --enable-fpm 返回错误: [plain] view plaincopy checking libxml2 install dir... no checking for xml2-config path..

64位SUSE编译32位程序出错

These `-m' switches are supported in addition to the above on AMD x86-64 processors in 64-bit environments. -m32 -m64 -mx32 Generate code for a 32-bit or 64-bit environment. The -m32 option sets int, long and pointer to 32 bits and generates code tha

编译gd2.0.35出错解决办法

configure.ac:64: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. make 解决办法:编译加m4_pattern_allow参数即:./configure --enable-m4_pattern_allow便能顺利编译安装

vs2010编译thrift之compiler出错的处理方法

问题描述 在使用visual studio 2010 SP1编译thrift-0.9.1的compiler时,出现: The command "flex -o "src\\thriftl.cc" src/thriftl.ll bison -y -o "src\thrifty.cc" --defines="src/thrifty.hh" src/thrifty.yy 问题原因 flex和bison原本是linux下的可执行程序,windo

Cocos2dx Android在编译的时候格式出错例如(snprintf)

在不同的平台上进行编译的时候,由于某些方法不是c++的标准库,因此经常会报出一下错误,比如格式错误,snprintf()win32和ios上是会有错,但是在android就会报出格式错误,只要在Application.mk上添加一句 APP_CFLAGS += -Wno-error=format-security 就会忽视格式错误 APP_STL := gnustl_static APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -std=c++11 -Wno-l

编译java文件,出错:Failed to establish a connection with the target VM

helloword程序,所有java学习人员人生第一个程序,哎妈,基础太差,出错 1 public class Helloword{ 2 3 public Helloword() { 4 public static void main (String[] args) { 5 System.out.println ("111111111");//输入out,然后按tab键,就会输入System.out.println 6 } 7 } 8 9 10 } 第1个错: Failed to es

编译php时,出错bad interpreter

安装php,参数有--with-apxs2.出现错误bad interpreter,原因是apache的apxs的文件需要perl的支持,首先要安装perl,然后修改apxs第一行,把第一行的#!/replace/with/path/to/perl/interpreter -w替换为#!/usr/bin/perl -w,这个是perl的位置,请根据自己的安装位置修改.