`
marswj
  • 浏览: 73301 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Ubuntu下编译安装python2.5.4支持ssl

阅读更多

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

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics