如何在Debian Linux上为python 2.5安装SSL?
发布时间:2020-12-14 01:21:29 所属栏目:Linux 来源:网络整理
导读:题 如何在Debian上为Python 2.5安装SSL? 我试过了: sudo easy_install ssl 但得到: $python setup.py buildlooking for /usr/include/openssl/ssl.hlooking for /usr/include/krb5.hrunning buildrunning build_pyrunning build_extbuilding 'ssl._ssl2'
题
如何在Debian上为Python 2.5安装SSL? 我试过了: sudo easy_install ssl 但得到: $python setup.py build looking for /usr/include/openssl/ssl.h looking for /usr/include/krb5.h running build running build_py running build_ext building 'ssl._ssl2' extension creating build/temp.linux-i686-2.5 creating build/temp.linux-i686-2.5/ssl gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I./ssl/2.5.1 -I/usr/include/python2.5 -c ssl/_ssl2.c -o build/temp.linux-i686-2.5/ssl/_ssl2.o In file included from ssl/_ssl2.c:75: ./ssl/2.5.1/socketmodule.h:45:33: error: bluetooth/bluetooth.h: No such file or directory ./ssl/2.5.1/socketmodule.h:46:30: error: bluetooth/rfcomm.h: No such file or directory ./ssl/2.5.1/socketmodule.h:47:29: error: bluetooth/l2cap.h: No such file or directory ./ssl/2.5.1/socketmodule.h:48:27: error: bluetooth/sco.h: No such file or directory In file included from ssl/_ssl2.c:75: ./ssl/2.5.1/socketmodule.h:98: error: field ‘bt_l2’ has incomplete type ./ssl/2.5.1/socketmodule.h:99: error: field ‘bt_rc’ has incomplete type ./ssl/2.5.1/socketmodule.h:100: error: field ‘bt_sco’ has incomplete type error: command 'gcc' failed with exit status 1 解 sudo apt-get install libbluetooth-dev sudo rm /usr/lib/python2.5/site-packages/ssl/__init__.pyc 解决方法
作为参考,您必须安装libbluetooth-dev.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读