libevent configure: error: openssl is a must but can not be found.error while loading shared librari
项目场景1:
安装libevent库
问题描述1
执行./configure 时出现以下错误
configure: error: openssl is a must but can not be found. You should add the directory containing
openssl.pc' to the
PKG_CONFIG_PATH’ environment variable, or setCFLAGS' and
LDFLAGS’ directly for openssl, or use `–disable-openssl’ to disable support for openssl encryption
执行make出现以下错误
make: *** No targets specified and no makefile found. Stop.
原因分析1:
缺少openssl
解决方案1:
sudo apt install libssl-dev
项目场景2:
运行用到libevent库的程序
问题描述2
编译hello-world.c,运行hello时,出现如下错误。
./hello: error while loading shared libraries: libevent-2.1.so.7: cannot open shared object file: No such file or directory
原因分析2:
在运行时,程序无法找到libevent-2.1.so.7这个动态库,因为该动态库在默认安装时,存放的路径在/usr/local/lib下,不在系统的默认查找路径内。
解决方案2:
将/usr/local/lib路径添加到/etc/ld.so.conf配置文件中
sudo vi /etc/ld.so.conf //需要sudo,否则出现 Can‘t open file for writing
添加路径
sudo ldconfig //更新一下,使该配置生效
也有说
起不来的运行 export LD_LIBRARY_PATH=/usr/local/lib 就可以了
可以试试
libevent configure: error: openssl is a must but can not be found.error while loading shared librari相关推荐
- /opt/nginx/sbin/nginx: error while loading shared librari
问题: #nginx启动报错 [root@localhost ~]# /opt/nginx/sbin/nginx /opt/nginx/sbin/nginx: error while loading ...
- 启动rabbitmq后台管理插件出错 /usr/lib64/erlang/erts-10.3.5.12/bin/beam.smp: error while loading shared librari
启动后台管理插件 [root@localhost opt]# rabbitmq-plugins enable rabbitmq_management 出错 [root@localhost opt]# ...
- configure: error: OpenSSL library not found
编译安装openssl时,没有问题. 在编译openssh时,configure报错 checking OpenSSL header version... 1010107f (OpenSSL 1.1. ...
- 安装了libevent和memcached之后却发现在执行的时候出现了 error while loading shared libraries问题...
今天晚上心血来潮装libevent和memcached,可是却出现了奇葩的问题,结果一看越来是引导文件的路径不对! 我遇到 error while loading shared libraries: ...
- 【错误记录】编译 Linux 内核报错 ( fatal error: openssl/opensslv.h: No such file or directory )
文章目录 一.报错信息 二.解决方案 一.报错信息 编译 Linux 内核 , 执行 sudo make 命令 , 开始正式编译 Linux 内核 , 报如下错误 : root@ubuntu:~/ke ...
- CentOS中升级openssl与卸载重装以及提示:error while loading shared libraries: libssl.so.1.1: cannot open shared ob
场景 在CentOS6中安装sqlserver时提示: Requires:openssl >=1:1.0.1g 所以需要对openssl进行升级 可以通过 openssl version -a ...
- fatal error: openssl/evp.h: 没有那个文件或目录
在陆佳华<嵌入式系统软硬件协同设计实战指南 第2版>一书的第13章节 编译U-boot时会遇到2个错误.原因很简单,就从一开始的错误提示着手: fatal error: openssl/e ...
- openssl: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such
openssl version openssl: error while loading shared libraries: libssl.so.3: cannot open shared objec ...
- openssl: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No su
openssl: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No su ...
最新文章
- python成功之路,Day2-判断和循环语句
- Bitcoin ABC近半数节点已经完成了版本更迭
- 宋利:许多高手并未参加MSU评测
- mysql scws_apache+mysql+php+scws+myft_scws编译安装全程记录
- isvisible java_.NET(C#) Selenium操作调用浏览器判断页面元素(ElementIsVisible)可见的方法...
- kafka jar包_Kafka系列文章之安装测试-第2篇
- Twitter数据抓取的方法(一)
- sonar小白式入门
- 使用cxf开发REST服务
- - 网页右下角广告(加强训练)题目描述模拟某些网站右下角的广告提示:
- 海明贴近度matlab,Matlab学习系列23.-模糊聚类分析原理及实现.docx
- PCManFTP v2.0(CVE-2013-4730)漏洞分析报告
- WireShark基本使用(7)第 7 章 高级
- Android基础整合项目之节日群发助手
- 2021“西湖论剑“网络安全大赛Writeup
- 最新官方新浪短网址API接口分享-附代码调用演示
- 购物网站HTML(首页)
- OpenCV图像拼接和图像融合技术
- 国内IT软件外包公司汇总(2023 最新版)!
- ABBYY FineReader 15标准版OCR文字识别及PDF编辑软工具
热门文章
- 解决Maven无法下载源代码包的问题
- 深度学习 从零开始 —— 神经网络(七又二分之一)卷积优化结构,阿猫阿狗识别,优化步骤结果
- 个人电脑做外网服务器(一)
- 论文阅读《How Does Knowledge Graph Embedding Extrapolate to Unseen Data: A Semantic Evidence View》
- 第七次网页前端培训笔记
- 本地存储Cookie、Storage、indexDB、ServiceWork离线访问网站
- 计算机图形学和工程图学,计算机图形学与印刷工程我与工程图学及计算机图形学...
- HTTP和HTTPS的区别以及含义
- PAT练习 骨牌铺方格
- DQN、DDQN、DPG、DDPG、Dueling QN