Centos7安装uwsgi出现关于SSL错误的问题_undefined reference to `evp_md_ctx_free-程序员宅基地

技术标签: python基础  linux  

问题如下

    core/subscription.o: In function `uwsgi_remove_subscribe_node':
    subscription.c:(.text+0x942): undefined reference to `EVP_MD_CTX_free'
    subscription.c:(.text+0x991): undefined reference to `EVP_MD_CTX_free'
    core/subscription.o: In function `subscription_new_sign_ctx':
    subscription.c:(.text+0x13c5): undefined reference to `EVP_MD_CTX_new'
    subscription.c:(.text+0x1456): undefined reference to `EVP_MD_CTX_free'
    core/ssl.o: In function `uwsgi_ssl_init':
    ssl.c:(.text+0xa9): undefined reference to `OPENSSL_init_ssl'
    ssl.c:(.text+0xb5): undefined reference to `OPENSSL_init_ssl'
    ssl.c:(.text+0xc1): undefined reference to `OPENSSL_init_crypto'
    core/ssl.o: In function `uwsgi_ssl_new_server_context':
    ssl.c:(.text+0x200): undefined reference to `TLS_server_method'
    ssl.c:(.text+0x2e5): undefined reference to `SSL_CTX_set_options'
    ssl.c:(.text+0x321): undefined reference to `SSL_CTX_set_options'
    ssl.c:(.text+0x53e): undefined reference to `SSL_CTX_set_options'
    core/ssl.o: In function `uwsgi_rsa_sign':
    ssl.c:(.text+0x7ac): undefined reference to `EVP_MD_CTX_new'
    ssl.c:(.text+0x832): undefined reference to `EVP_MD_CTX_free'
    ssl.c:(.text+0x955): undefined reference to `EVP_MD_CTX_free'
    core/ssl.o: In function `uwsgi_sni_cb':
    ssl.c:(.text+0xe1b): undefined reference to `SSL_CTX_get_options'
    ssl.c:(.text+0xe26): undefined reference to `SSL_set_options'
    collect2: error: ld returned 1 exit status
    *** error linking uWSGI ***
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3.7 -u tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jx63zvlz/uwsgi/setup.py'"'"';all-jx63zvlz/uwsgi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(ace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"cord /tmp/pip-record-uzoxgmp4/install-record.txt --single-version-externalle logs for full command output.

上面还省略了很长一段,在此之前我已经安装了openssl-devel, 在此之前有在别地方看到说通过anaconda安装uwsgi,因为不想去再安装anaconda就没有尝试这个方式: https://github.com/unbit/uwsgi/issues/1516

github上的解决方案2:https://github.com/unbit/uwsgi/issues/1516

我的问题以及解决方法:

卸载openssl-devel

我的问题是之前通过yum安装了openssl-devel,但是使用pip命令时还是出现ssl报错,因为pip命令用不了,所以又通过源码编译安装了新的OpenSSL(OpenSSL 1.1.1a),但是忘记卸载了yum安装的OpenSSL(openssl-devel-1.0.2),估计是这两个冲突了,卸载yum安装的OpenSSL后就好了,白忙活了好一阵


 卸载OpenSSL      yum remove openssl-devel

查看OpenSSL版本    openssl version

 

 

 

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/rongDang/article/details/102871874

智能推荐

C3P0和Druid数据库连接池的简单使用;几种设计模式简介;简略介绍自定义数据库连接池注意点_c3p0连接池用的设计模式-程序员宅基地

文章浏览阅读577次。数据库连接池负责分配、管理和释放数据库连接;它允许应用程序重复使用一个连接,而不是新建连接,提高了程序的效率;由于新建数据库连接也是要耗费性能和时间的,当访问量十分巨大的时候,对程序性能的影响就极为显著,为了解决这个问题出现了数据库连接池的技术;C3P0连接池使用步骤1、导入jar包;2、导入配置文件到src目录下;(配置文件会自动导入,但是名字必须是c3p0-config.xml或者c3p0-config-properties)3、创建C3P0连接池对象;4、获取连接;5、使用连接;_c3p0连接池用的设计模式

vue修改config后怎么生效_vue.config.js 配置无效?-程序员宅基地

文章浏览阅读6.2k次。vue.config.js 位于根目录下使用vue-cli3构建的项目constpath=require("path");functionresolve(dir){returnpath.join(__dirname,dir);}module.exports={lintOnSave:true,//生产环境是否生成sourceMap文件producti..._vue.config.js 生效

SpringBoot 系列教程(三十):SpringBoot整合Mybatis增删改查注解版_springboot mybatis 使用查锁-程序员宅基地

文章浏览阅读2.9k次。源码:https://github.com/Thinkingcao/SpringBootLearning/tree/master/springboot-mybatis本文主要讲解如何使用SpringBoot整合Mybatis,并访问数据库。由于Mybatis这个框架太过于流行,所以这里不过多涉及Mybatis的知识。一、创建SpringBoot项目,引入配置信息0、项目结构1..._springboot mybatis 使用查锁

bzoj1047【haoi2007】理想正方形-程序员宅基地

文章浏览阅读832次。单调队列

linux addr2line 定位ASan Dump信息-程序员宅基地

文章浏览阅读1k次,点赞25次,收藏19次。解决linux user层代码出现crash定位大难题_linux addr2line 定位asan dump信息

关于interface接口的使用与理解-程序员宅基地

文章浏览阅读4.1k次,点赞2次,收藏21次。1、什么是interface接口?首先,接口是与类平行的结构,两者都是独立的一个结构,都有自己的定义与规则,接口不属于类2、如何定义interface接口?定义接口中的成员:在jdk7以前只能定义全局常量(使用public static final修饰的变量,通常可以省略不写)与抽象方法(类似于方法,但是没有方法体,使用public abstract修饰变量名)。注意在接口中不能定义构造器!意味着接口不可以被实例化new出对象。3、如何使用interface?只要编写了接口,意_interface接口

随便推点

ssh远程登陆执行命令:未找到命令_sshpass命令找不到-程序员宅基地

文章浏览阅读5.1k次。ssh远程登陆执行命令:未找到命令_sshpass命令找不到

浅谈Linux的locale,LC_ALL和LANG_lc——time-程序员宅基地

文章浏览阅读4.4k次。如果你是一个Linux新手,并且刚刚安装了一个新的英文系统但想要设置成中文系统,肯定会接触到上面几个变量,在网上搜索了一系列解决方法,给一些变量赋一下值,再export一下,或者写到配置文件里面,然后就搞定了,但究竟为什么要这样做,可能还是一知半解。通过这两天自己对网上看到的一些文章的整理和自己的试验,在这里记录一下自己的理解。一、什么是localelocale这个单词中文翻译成地_lc——time

Vue实现前端本地打包为一个zip文件_vant打包完项目,再次打包文件夹内容为zip-程序员宅基地

文章浏览阅读989次。1、应用场景:打包下载的批量二维码图片2、实际后端返回数据格式:图片联机数组集合,每个图片链接打开都是一张二维码图片3、代码实现如下:元素代码<el-button type="primary" icon="el-icon-download" size="mini" @click="downloadCode"> 下载二维码</el-button>js代码第一步安装依赖包_vant打包完项目,再次打包文件夹内容为zip

Java面向对象1----类与对象的定义和使用_java类和对象的定义和使用答案头歌-程序员宅基地

文章浏览阅读821次。介绍面型对象的概念,以及Java中类的定义和使用方法_java类和对象的定义和使用答案头歌

Java 搭建一个可交互的窗体程序_java窗体程序的主程序-程序员宅基地

文章浏览阅读2k次。简单地显示一个窗口所需的最少代码import javax.swing.JFrame;public class main { static class Win extends JFrame{//static不能少 Win() { setVisible(true);//setv } } public static void main(String[] args) { // TODO new Win(); }}报错:No enclosing instan_java窗体程序的主程序

Anti ptrace:去掉AlipayWallet的ptrace 反调试保护,进行lldb调试---仅用于参考学习-程序员宅基地

文章浏览阅读1.8k次。新的博客学习笔记前言code软件环境:Xcode硬件环境:iPhone5越狱手机、Mac开发工具: Cycript、LLDB、logos Tweak、hopper、MonkeyDev、AFLEXLoader、dumpdecrypted、debugserver、ssh、class_dump、hook本文采用tweak 的方式进行M..._lldb 绕过ptrace反调试

推荐文章

热门文章

相关标签