- 论坛徽章:
- 0
|
我的环境是linux10.0
已经从sleepcat.com下载了Berkeley db4.3安装完成, 但是我在编译php的时候出现这个错误:
编译语句:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-fastcgi --with-flatfile \
>; --enable-sockets --enable-pcntl --with-mysql --with-gd --with-jpeg-dir=/usr/local \
>; --with-png-dir=/usr/local/ --without-xpm --with-zlib-dir=/usr/ --enable-gd-native-ttf \
>; --enable-ftp --with-iconv --with-regex --enable-dba=shared --with-db4=/usr/local/berkelay/
最后错误:
checking for db4 major version... configure: error: Header contains different version
config.log 错误:
/tmp/cc0gvzEK.o(.text+0x15): In function `main':
/usr/local/src/php-4.3.9/configure:23823: undefined reference to `db_appinit'
/usr/local/berkelay//lib/libdb.so: undefined reference to `pthread_condattr_setpshared'
/usr/local/berkelay//lib/libdb.so: undefined reference to `pthread_mutexattr_destroy'
/usr/local/berkelay//lib/libdb.so: undefined reference to `pthread_mutexattr_setpshared'
/usr/local/berkelay//lib/libdb.so: undefined reference to `pthread_mutexattr_init'
/usr/local/berkelay//lib/libdb.so: undefined reference to `pthread_mutex_trylock'
collect2: ld returned 1 exit status
configure: failed program was:
#line 23817 "configure"
#include "confdefs.h"
#include "/usr/local/berkelay//include/db.h"
int main() {
(void)db_appinit("", NULL, (DB_ENV*)0, 0);
; return 0; }
configure:23864: checking for db2 major version
不知道改怎么解决。请教! |
|