Ubuntu 9.04
python 2.54
今天尝试GAE的时候,运行dev_appserver.py出错,查了一下,原来是ssl问题。
解决方法:
1、sudo apt-get install libssl-dev
2、解压python源文件包,修改文件Modules/Setup.dist:
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
SSL=/usr
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto
3、编译安装python