ubuntu下安装python2.5.4支持ssl
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,去掉注释:
- # 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
您可能会喜欢:
分类: 软件
192 prednisone mwxz cialis samnz accutane >:-]]] auto insurance klkkg