首页服务器Web服务器 Linux中openssl/opensslv.h找不到问题的解决方法

Linux中openssl/opensslv.h找不到问题的解决方法

前言 众所周知scrapy是Python中鼎鼎大名的爬虫框架,在安装scrapy过程中碰到了openssl某个文件找不到的问题,并进行了分析,记录之。 一、 scrapy以及安装过程 Scrapy是python…

前言

众所周知scrapy是Python中鼎鼎大名的爬虫框架,在安装scrapy过程中碰到了openssl某个文件找不到的问题,并进行了分析,记录之。

一、 scrapy以及安装过程

Scrapy是python中鼎鼎大名的爬虫框架,笔者在Centos 7系统之上进行安装,发现了如下问题:

   >> pip install scrapy

由于安装过程中的过程信息比较多,这里只列出了其中的关键片段信息:

 running egg_info  writing requirements to src/cryptography.egg-info/requires.txt  writing src/cryptography.egg-info/PKG-INFO  writing top-level names to src/cryptography.egg-info/top_level.txt  writing dependency_links to src/cryptography.egg-info/dependency_links.txt  writing entry points to src/cryptography.egg-info/entry_points.txt  reading manifest file 'src/cryptography.egg-info/SOURCES.txt'  reading manifest template 'MANIFEST.in'  no previously-included directories found matching 'docs/_build'  warning: no previously-included files matching '*' found under directory 'vectors'  writing manifest file 'src/cryptography.egg-info/SOURCES.txt'  running build_ext  generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'  creating build/temp.linux-x86_64-2.7  generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'  generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'  building '_openssl' extension  creating build/temp.linux-x86_64-2.7/build  creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o  build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory  #include       ^  compilation terminated.  error: command 'gcc' failed with exit status 1   ---------------------------------------- Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-hRMlG0/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('/r/n', '/n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ReCoWo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-hRMlG0/cryptography/ [root@AY131203102210033c39Z ~]# yum install openssl build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory ^C  Exiting on user cancel. 
本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/fwq/web/6274.html
上一篇最全面的vsftpd配置文件详解
下一篇 虚拟机实现静态IP登录和无线上网
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部