cmake: error while loading shared libraries: libssl.so.1.1

在ubuntu22.04中编译c++文件时出现如下错误:

cmake: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

解决办法:1.进网站下载对应的.deb文件,链接为:https://security.ubuntu.com/ubuntu/pool/main/o/openssl/

下载:libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb

然后安装:sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb

问题解决。

相关推荐
巴渝小禹21 小时前
【Ubuntu】虚拟机 Ubuntu 挂载 宿主机 Windows文件夹
linux·ubuntu
biubiubiu07061 天前
Ubuntu学习笔记
笔记·学习·ubuntu
Eternal-Student1 天前
【ubuntu】在Linux系统上安装Microsoft Edge浏览器
linux·ubuntu·microsoft
肩上风骋2 天前
ubuntu系统使用ifconfig查询网络IP的时候,只能查到本地回环地址,无其他网络接口IP
网络·ubuntu·只能查到本地回环地址
星际工程师2 天前
Windows10安装配置wsl+Ubuntu20.04环境
ubuntu
奔跑吧 android2 天前
【Docker】【2.docker 安装 ubuntu 桌面版】
ubuntu·docker·容器
人工智能的苟富贵2 天前
Rust 异步编程实践:用 Tokio 实现一个迷你 HTTP 服务
ubuntu·http·rust
Tipriest_2 天前
自定义ROS topic 的常用消息格式及类型
ros·msg
爱尔兰的楠小楠2 天前
Windows上使用WSL2创建Ubuntu系统,实现无缝高效开发的体验
linux·windows·ubuntu
Fluency-112 天前
ubuntu中ssh连接root用户
linux·ubuntu·ssh