当前位置:网站首页>/bin/ld: 找不到 -lssl
/bin/ld: 找不到 -lssl
2022-07-02 12:13:00 【六位元素】
目录
场景
当我们对某个源码包进行编译安装,再执行 configure 有时候会因为找不到库文件,报错如下:
[[email protected] ~]# ./configure
/bin/ld: 找不到 -lssl
出现问题
/bin/ld: 找不到 -lssl
问题分析
因为编译要使用 lib 库文件,但是由于没有文件索引关系,导致搜索不到库文件,从而报错。
解决方法
通过使用 locate 加载库文件,创建索引关系,更新 lib 库,从而解决这个问题。
首先,加载库文件,创建索引关系
[[email protected] ~]# locate libssl
/usr/lib64/.libssl.so.1.0.2k.hmac
/usr/lib64/.libssl.so.10.hmac
/usr/lib64/libssl.so.1.0.2k
/usr/lib64/libssl.so.10
/usr/lib64/libssl3.so
然后,创建库文件软链接
[[email protected] ~]# ln -s /usr/lib64/libssl.so.1.0.2k /usr/lib/libssl.so
之后,再次编译执行 configure 即可
[[email protected] ~]# ./configure
边栏推荐
- [leetcode] 283 move zero
- Bing. Site Internet
- LeetCode刷题——奇偶链表#328#Medium
- 02.面向容器化后,必须面对golang
- Pytoch saves tensor to Mat file
- Yolo format data set processing (XML to txt)
- Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568
- PTA 天梯赛习题集 L2-001 城市间紧急救援
- Case introduction and problem analysis of microservice
- 6090. 极大极小游戏
猜你喜欢
Leetcode skimming -- sum of two integers 371 medium
已知兩種遍曆序列構造二叉樹
Download blender on Alibaba cloud image station
Equipped with Ti am62x processor, Feiling fet6254-c core board is launched!
LeetCode刷题——去除重复字母#316#Medium
Pytoch saves tensor to Mat file
怎样从微信返回的json字符串中截取某个key的值?
Yolo format data set processing (XML to txt)
自定义异常
[leetcode] 1254 - count the number of closed Islands
随机推荐
02.面向容器化后,必须面对golang
6095. 强密码检验器 II
6090. 极大极小游戏
Leetcode skimming -- incremental ternary subsequence 334 medium
高考分数线爬取
[leetcode] 344 reverse string
微信支付宝账户体系和支付接口业务流程
[leetcode] 1905 statistics sub Island
Two traversal sequences are known to construct binary trees
yolo格式数据集处理(xml转txt)
04. Some thoughts on enterprise application construction after entering cloud native
Let your HMI have more advantages. Fet-g2ld-c core board is a good choice
【LeetCode】977-有序数组的平方
[leetcode] 189 rotation array
【LeetCode】1254-统计封闭岛屿的数量
【LeetCode】417-太平洋大西洋水流问题
【LeetCode】877-石子游戏
How to avoid 7 common problems in mobile and network availability testing
[leetcode] 577 reverse word III in string
folium地图无法显示的问题,临时性解决方案如下