perl编译,libgdbm不兼容



我正在尝试在Linux RHEL 6.8系统上编译Perl(任何版本)。无论是手动编译还是使用Perlbrew,结果都是相同的。遇到libgdbm.so.2.0.0文件时它会死亡。

这是笔录的尾巴:

检查您选择的C编译器和标志是否相干...我尝试编译并运行以下简单程序:

#include <stdio.h>
int main() { printf("Okn"); return(0); }
I used the command:
        cc -o try -O2 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib try.c -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lut
il -lc
         ./try
and I got the following output:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../libgdbm.so when searching for -lgdbm
/usr/bin/ld: skipping incompatible /usr/lib/libgdbm.so when searching for -lgdbm
/usr/bin/ld: cannot find -lgdbm
collect2: ld returned 1 exit status
I can't compile the test program.
(The supplied flags or libraries might be incorrect.)
You have a BIG problem.  Shall I abort Configure [y]
Ok.  Stopping Configure.

有什么想法吗?我认为libgdbm的版本不旧。

这是我注意到我的库列表的第一个包含64位和32个(未标记)版本的一个。我消除了非64个,现在我正在编译。不确定这是否是我的所有问题,但这就是这个特定的细节。 - 克里夫·沃伦(Cliff Warren)

最新更新