论坛首页 编程语言技术论坛

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

浏览 3833 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-05-09   最后修改:2009-05-09

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