1

我按照以下位置的说明成功构建了 BerkleyDB:
http ://www.linuxfromscratch.org/blfs/view/svn/server/db.html

我正在尝试在我的 CentOS 6.3 上构建 Fix8 (fix8.org) 并需要 BerkleyDB 的依赖,但我收到一个失败的错误:

libtool: link: g++ -g -O2 -Wall -rdynamic -o .libs/f8c f8c.o f8cutils.o f8precomp.o     
-lrt  /home/caustic/dev/dakka-fix8-b0a60e9/runtime/.libs/libfix8.so -lcrypt 
 -lPocoFoundation -lPocoNet -lPocoUtil -ltbb -L/home/caustic/dev/dakka-fix8-b0a60e9
 /runtime -ldb_cxx -lz -Wl,-rpath -Wl,/usr/local/lib

 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../..
 /../libdb_cxx.so when searching for -ldb_cxx

 /usr/bin/ld: skipping incompatible /usr/lib/libdb_cxx.so when searching for -ldb_cxx

 /usr/bin/ld: cannot find -ldb_cxx
 collect2: ld returned 1 exit status
 make: *** [f8c] Error 1

当我“ls”指定的问题文件时,我得到:

[root@hft x86_64-redhat-linux]# ls  /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../.. /../libdb_cxx.so
 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../libdb_cxx.so
 [root@hft x86_64-redhat-linux]# ls -l  /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../libdb_cxx.so
 lrwxrwxrwx. 1 root root 16 Nov 23 17:36 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../libdb_cxx.so -> libdb_cxx-5.3.so

我使用“yum remove”删除了所有旧的或冲突的 BerkleyDB 实例。有什么提示可以让我走上正轨吗?谢谢

4

0 回答 0