当前位置:网站首页>/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] 1140 stone game II
- 15_ Redis_ Redis. Conf detailed explanation
- 损失函数与正负样本分配:YOLO系列
- Deux séquences ergodiques connues pour construire des arbres binaires
- 【LeetCode】577-反转字符串中的单词 III
- Storage read-write speed and network measurement based on rz/g2l | ok-g2ld-c development board
- 【LeetCode】19-删除链表的倒数第N个结点
- 终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)
- . Solution to the problem of Chinese garbled code when net core reads files
- [leetcode] 1254 - count the number of closed Islands
猜你喜欢
MySQL calculate n-day retention rate
Engineer evaluation | rk3568 development board hands-on test
6.12 critical moment of Unified Process Platform
[leetcode] 1162 map analysis
16_ Redis_ Redis persistence
I made an istio workshop. This is the first introduction
Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)
Steps for Navicat to create a new database
[leetcode] 417 - Pacific Atlantic current problem
03.golang初步使用
随机推荐
folium地图无法显示的问题,临时性解决方案如下
士官类学校名录
【LeetCode】977-有序數組的平方
NBA player analysis
夏季高考文化成绩一分一段表
Semantic segmentation learning notes (1)
【LeetCode】417-太平洋大西洋水流问题
Loss function and positive and negative sample allocation: Yolo series
6095. 强密码检验器 II
12_ Redis_ Bitmap_ command
5. Practice: jctree implements the annotation processor at compile time
College entrance examination score line climbing
Build your own semantic segmentation platform deeplabv3+
[leetcode] 417 - Pacific Atlantic current problem
2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)
4. Data splitting of Flink real-time project
02. After containerization, you must face golang
Bing. Com website
16_ Redis_ Redis persistence
2022 年辽宁省大学生数学建模A、B、C题(相关论文及模型程序代码网盘下载)