centos安装pycurl出现src/module.c:723: error: ‘CURLPROTO_*’ undeclared错误的解决办法
来源:互联网 发布:淘宝商城玩具店 编辑:程序博客网 时间:2024/05/16 17:37
0.问题
前几天试图在centos上按装pycurl,本以为已轻车熟路:pip install pycurl
;
没想到却出现了一堆错误(只截取部分):
In file included from src/module.c:1:
src/pycurl.h:152:5: warning: #warning "libcurl was compiled with SSL support, but configure could not determine which " "library was used; thus no SSL crypto locking callbacks will be set, which may " "cause random crashes on SSL requests"
src/module.c: In function ‘initpycurl’:
src/module.c:723: error: ‘CURLPROTO_IMAP’ undeclared (first use in this function)
src/module.c:723: error: (Each undeclared identifier is reported only once
src/module.c:723: error: for each function it appears in.)
src/module.c:724: error: ‘CURLPROTO_IMAPS’ undeclared (first use in this function)
src/module.c:725: error: ‘CURLPROTO_POP3’ undeclared (first use in this function)src/module.c:726: error: ‘CURLPROTO_POP3S’ undeclared (first use in this function)
src/module.c:727: error: ‘CURLPROTO_SMTP’ undeclared (first use in this function)
src/module.c:728: error: ‘CURLPROTO_SMTPS’ undeclared (first use in this function)
src/module.c:729: error: ‘CURLPROTO_RTSP’ undeclared (first use in this function)src/module.c:730: error: ‘CURLPROTO_RTMP’ undeclared (first use in this function)
src/module.c:731: error: ‘CURLPROTO_RTMPT’ undeclared (first use in this function)
src/module.c:732: error: ‘CURLPROTO_RTMPE’ undeclared (first use in this function)
src/module.c:733: error: ‘CURLPROTO_RTMPTE’ undeclared (first use in this function)
src/module.c:734: error: ‘CURLPROTO_RTMPS’ undeclared (first use in this function)
src/module.c:735: error: ‘CURLPROTO_RTMPTS’ undeclared (first use in this function)
src/module.c:736: error: ‘CURLPROTO_GOPHER’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
1.原因
尝试了其他方法也有类似问题。
折腾了半天,发现竟然是libcurl版本太低了,但是yum告诉我我已经安装了最新版本的libcurl。
然后还得出了一个结论,centos实在是太太保守了。所谓的最新居然是4年前的版本。
2.解决方法
知道了原因就好解决了。
- 直接上http://curl.haxx.se/download.html下载最新版本的curl源码。
- 解压curl
- 安装curl
make
->make install
- 安装pycurl
pip install pycurl
Done
原文地址http://innlym.me/articles/1/
- centos安装pycurl出现src/module.c:723: error: ‘CURLPROTO_*’ undeclared错误的解决办法
- centos安装eric4出现“No module named QtHelp”的解决办法
- centos安装eric4出现“No module named QtHelp”的解决办法
- Linux CentOS内核编译:下载CentOS源码、编译2.6.32-220的错误(apic.c:819 error 'numi_watchdog' undeclared)
- 安装PHP扩展UploadProgress的error: undeclared错误解析
- centos yum安装mysql出现的错误与解决办法
- no module named pycurl 解决办法
- no module named pycurl 解决办法
- CentOS使用yum install出现PYCURL ERROR 6
- 安装matlab出现Error 1935错误的解决办法。
- CentOS [Errno 14] PYCURL ERROR 6 错误如何解决
- 编译linux-2.6.20内核出现scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared 错误
- error C2065: '_beginthreadex' : undeclared identifier 的解决办法
- error C2065: 'PMIB_IPSTATS' : undeclared identifier的解决办法
- error: ‘INT_MAX’ undeclared 解决办法
- VS2008下编译错误(error C2065: '_S1max' : undeclared identifier)的解决办法
- 'HCRYPTHASH' : undeclared identifier 类似错误的解决办法
- VC++中出现错误“ error c2065 'printf' undeclared identifier”的处理方法
- SCI科研投稿发文宝典
- Log4net自定义信息(变量或属性或字段)存入数据库
- iOS 使用UITextField隐藏键盘
- IBM面试题 (java方面)
- edit distance 编辑距离
- centos安装pycurl出现src/module.c:723: error: ‘CURLPROTO_*’ undeclared错误的解决办法
- zoj 3816 Generalized Palindromic Number
- 设计模式之结构性模式
- 【hadoop学习】--(1)hadoop安装前准备
- 大师与少年的对话
- 01. C#和.net框架介绍
- python函数 - 函数的参数
- PAT Advanced Level 1086. Tree Traversals Again (25)(Java and C++)
- hadoop开发工程师招聘要求