Php 正在检查DB4主版本。。。配置:错误:标头包含不同的版本

Php 正在检查DB4主版本。。。配置:错误:标头包含不同的版本,php,configuration,compilation,berkeley-db,Php,Configuration,Compilation,Berkeley Db,我一直在尝试使用以下/configure [/配置] `CC="gcc -m64" ./configure \ --prefix=/opt/php-5.3.14 \ --with-apxs2=/opt/apache-httpd-2.2.22/bin/apxs \ --enable-mbstring \ --enable-intl \ --libdir=/usr/lib \ --with-icu-dir=/usr \ --with-gettext=/usr \ --

我一直在尝试使用以下
/configure

[/配置]

`CC="gcc -m64" ./configure \
  --prefix=/opt/php-5.3.14 \
  --with-apxs2=/opt/apache-httpd-2.2.22/bin/apxs \
  --enable-mbstring \
  --enable-intl \
  --libdir=/usr/lib \
  --with-icu-dir=/usr \
  --with-gettext=/usr \
  --with-pcre-regex=/opt/pcre-8.35 \
  --with-pcre-dir=/opt/pcre-8.35 \
  --with-readline=/usr \
  --with-libxml-dir=/usr/bin/xml2-config \
  --enable-soap \
  --enable-wddx \
  --with-xmlrpc \
  --with-xsl=/usr \
  --with-mysql=mysqlnd \
  --with-mysqli=mysqlnd \
  --with-pdo-mysql=mysqlnd \
  --enable-dba \
  --with-db4=/usr \
  --with-zlib=/opt/zlib-1.2.8 \
  --with-zlib-dir=/opt/zlib-1.2.8 \
  --with-gd \
  --with-jpeg-dir=/usr \
  --with-png-dir=/usr \
  --with-freetype-dir=/usr \
  --enable-gd-native-ttf \
  --enable-gd-jis-conv \
  --with-mcrypt=/usr \
  --enable-bcmath \
  --with-openssl=/opt/openssl-1.0.0g \
2>&1 | tee configure_log.txt`
我收到消息
正在检查DB4主版本。。。配置:错误:标题包含不同版本

告诉我怎么修理这个东西

db4的包如下所示

# rpm -qa|grep db4
db4-devel-4.7.25-18.el6_4.x86_64
db4-cxx-4.7.25-18.el6_4.x86_64
db4-4.7.25-18.el6_4.x86_64
db4-utils-4.7.25-18.el6_4.x86_64
#

您似乎同时安装了db4和db5以及/usr/include/db.h 不是来自db-4.7.25

尝试将-I/usr/include/db47添加到CFLAGS中,以便/usr/include/db47/db.h 在/usr/include/db.h之前找到