使用SSL支持编译Python时出错

时间:2012-11-18 17:46:47

标签: python ssl build

我正在尝试在Centos6上编译Python 2.7.3。几乎一切都运行正常,除了我真正需要的东西^^。

当我输入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。

1 个答案:

答案 0 :(得分:0)

确保openssl-dev(lib和include)的正确路径位于Makefile