当前位置:网站首页>/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边栏推荐
- Storage read-write speed and network measurement based on rz/g2l | ok-g2ld-c development board
- Folium, diagnosis and close contact trajectory above
- PTA 天梯赛习题集 L2-001 城市间紧急救援
- 20_ Redis_ Sentinel mode
- 18_ Redis_ Redis master-slave replication & cluster building
- MySQL -- Index Optimization -- order by
- 彻底弄懂浏览器强缓存和协商缓存
- College entrance examination score line climbing
- 密码学基础知识
- Bing.com网站
猜你喜欢

党史纪实主题公益数字文创产品正式上线

Beijing rental data analysis

Pytoch saves tensor to Mat file

There are 7 seats with great variety, Wuling Jiachen has outstanding product power, large humanized space, and the key price is really fragrant

LeetCode刷题——验证二叉树的前序序列化#331#Medium

终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)

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

Bing. Site Internet

Equipped with Ti am62x processor, Feiling fet6254-c core board is launched!

【网络安全】网络资产收集
随机推荐
2279. 装满石头的背包的最大数量
Folium, diagnosis and close contact trajectory above
Redux——详解
Bing.com网站
PTA 天梯赛习题集 L2-001 城市间紧急救援
6.12 critical moment of Unified Process Platform
【Leetcode】167-两数之和II -输入有序数组
Leetcode skimming - remove duplicate letters 316 medium
Equipped with Ti am62x processor, Feiling fet6254-c core board is launched!
【LeetCode】1020-飞地的数量
高考分数线爬取
彻底弄懂浏览器强缓存和协商缓存
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
Party History Documentary theme public welfare digital cultural and creative products officially launched
损失函数与正负样本分配:YOLO系列
【LeetCode】344-反转字符串
LeetCode刷题——统计各位数字都不同的数字个数#357#Medium
【LeetCode】977-有序数组的平方
[leetcode] 417 - Pacific Atlantic current problem
Leetcode skimming -- sum of two integers 371 medium