[英]Perl compile, libgdbm incompatibility
我正在嘗試在Linux RHEL 6.8系統上編譯Perl(任何版本)。 無論是手動編譯還是使用perlbrew,結果都是一樣的。 遇到libgdbm.so.2.0.0文件時,它死了。
這是筆錄的結尾:
檢查您選擇的C編譯器和標志的一致性...我試圖編譯並運行以下簡單程序:
#include <stdio.h>
int main() { printf("Ok\n"); 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位的東西,現在正在編譯。 不知道這是否是我所有的問題,但是對於這個特定的細節就是這樣。 –懸崖沃倫
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.