我一直在尝试使用./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`
我收到了消息checking for DB4 major version... configure: error: Header contains different version
告诉我如何修复这个plobram。
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
#
答案 0 :(得分:0)
您似乎安装了db4和db5,以及/usr/include/db.h 来自db-4.7.25的 NOT 。
尝试将-I / usr / include / db47添加到CFLAGS,以便/usr/include/db47/db.h 在/usr/include/db.h
之前找到