首页 > 软件 > ubuntu下安装python2.5.4支持ssl

ubuntu下安装python2.5.4支持ssl

2009年8月17日 闫鹏 发表评论 阅读评论

ubuntu 9.04,gae在使用dev_appserver.py的时候,总是出现错误:

<type ‘exceptions.ImportError’>: No module named _multiprocessing

以前修改micolog的代码,都是传到服务器上调试的…,今天想要开个新工程,实在没法忍受了。google了一下,发现是python版本的问题,ubuntu上面自带的是2.6.2版本,与gae需求的版本不符

下载python2.5.4安装后,却又提示另外一个错误

AttributeError: ‘module’ object has no attribute ‘HTTPSHandler’

google结果中都是说的mac机器上面没有装ssl扩展,晕,安装ssl的解决办法如下:

1、sudo apt-get install libssl-dev

2、修改python源文件包中的文件Modules/Setup.dist,去掉注释:

  1. # Socket module helper for SSL support; you must comment out the other 
  2. # socket line above, and possibly edit the SSL variable: 
  3. SSL=/usr 
  4. _ssl _ssl.c \ 
  5.     -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ 
  6.     -L$(SSL)/lib -lssl -lcrypto 

您可能会喜欢:

  1. svn安装备份完全解决方案
  2. 分层次管理tag文件
分类: 软件 标签: