2012-11-18 79 views
1

我想在Centos6上編譯Python 2.7.3。幾乎一切正常,除了我真正需要的東西^^。編譯Python支持SSL的錯誤

當我鍵入make,我得到的錯誤:

building '_ssl' extension 
gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/root/Python-2.7.3/Include -I/root/Python-2.7.3 -c /root/Python-2.7.3/Modules/_ssl.c -o build/temp.linux-i686-2.7/root/Python-2.7.3/Modules/_ssl.o 
gcc -pthread -shared build/temp.linux-i686-2.7/root/Python-2.7.3/Modules/_ssl.o -L/usr/local/lib -lssl -lcrypto -o build/lib.linux-i686-2.7/_ssl.so 
*** WARNING: renaming "_ssl" since importing it failed: build/lib.linux-i686-2.7/_ssl.so: undefined symbol: krb5_auth_con_getrcache 

和結束時我得到一個消息構建失敗模塊_ssl(像這樣)。

你有沒有遇到過這個問題?我已經安裝了OpenSSL(0.9.8e fips)和OpenSSL-dev。

回答

0

確保openssl-dev(lib和include)的正確路徑在您的Makefile中

+0

我認爲路徑是正確的。可能我的OpenSSL不適合,我不知道。 – marxin