当前位置:网站首页>/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边栏推荐
- 10_ Redis_ geospatial_ command
- Wechat Alipay account system and payment interface business process
- Force deduction solution summary 2029 stone game IX
- 【LeetCode】877-石子游戏
- 【LeetCode】577-反转字符串中的单词 III
- Yolo format data set processing (XML to txt)
- 【Leetcode】167-两数之和II -输入有序数组
- 03. Preliminary use of golang
- Engineer evaluation | rk3568 development board hands-on test
- 【Salesforce】如何确认你的Salesforce版本?
猜你喜欢

How to intercept the value of a key from the JSON string returned by wechat?

19_ Redis_ Manually configure the host after downtime
![[experience cloud] how to get the metadata of experience cloud in vscode](/img/45/012c2265402ba1b44f4497f468bc61.png)
[experience cloud] how to get the metadata of experience cloud in vscode

I made an istio workshop. This is the first introduction

How to choose a third-party software testing organization for automated acceptance testing of mobile applications

Pytorch 保存tensor到.mat文件

搭建自己的语义分割平台deeplabV3+

Markdown tutorial

Download blender on Alibaba cloud image station

LeetCode刷题——统计各位数字都不同的数字个数#357#Medium
随机推荐
11_ Redis_ Hyperloglog_ command
Yolov5 code reproduction and server operation
Basic knowledge of cryptography
【LeetCode】417-太平洋大西洋水流问题
LeetCode刷题——奇偶链表#328#Medium
6092. 替换数组中的元素
【LeetCode】1140-石子游戏II
[leetcode] 283 move zero
. Solution to the problem of Chinese garbled code when net core reads files
For the problem that Folium map cannot be displayed, the temporary solution is as follows
[development environment] install the Chinese language pack for the 2013 version of visual studio community (install test agents 2013 | install visual studio 2013 simplified Chinese)
2279. 装满石头的背包的最大数量
[experience cloud] how to get the metadata of experience cloud in vscode
Leetcode skimming -- incremental ternary subsequence 334 medium
NBA player analysis
夏季高考文化成绩一分一段表
[leetcode] 200 number of islands
[leetcode] 1254 - count the number of closed Islands
提前批院校名称
【LeetCode】977-有序数组的平方