当前位置:网站首页>/bin/ld: 找不到 -llz4
/bin/ld: 找不到 -llz4
2022-07-02 12:13:00 【六位元素】
目录
场景
当我们对某个源码包进行编译安装,再执行 configure 有时候会因为找不到库文件,报错如下:
[[email protected] ~]# ./configure
/bin/ld: 找不到 -llz4出现问题
/bin/ld: 找不到 -llz4
问题分析
因为编译要使用 lib 库文件,但是由于没有文件索引关系,导致搜索不到库文件,从而报错。
解决方法
通过使用 locate 加载库文件,创建索引关系,更新 lib 库,从而解决这个问题。
首先,加载库文件,创建索引关系
[[email protected] ~]# locate liblz4
/usr/lib64/liblz4.so.1
/usr/lib64/liblz4.so.1.8.3然后,创建库文件软链接
[[email protected] ~]# ln -s /usr/lib64/liblz4.so.1 /usr/lib/liblz4.so之后,再次编译执行 configure 即可
[[email protected] ~]# ./configure边栏推荐
- 【Leetcode】167-两数之和II -输入有序数组
- 15_ Redis_ Redis. Conf detailed explanation
- Redux——详解
- Build your own semantic segmentation platform deeplabv3+
- 4. Jctree related knowledge learning
- 高考分数线爬取
- 士官类学校名录
- PTA ladder game exercise set l2-001 inter city emergency rescue
- 04. Some thoughts on enterprise application construction after entering cloud native
- Semantic segmentation learning notes (1)
猜你喜欢

百变大7座,五菱佳辰产品力出众,人性化大空间,关键价格真香

MySQL -- Index Optimization -- order by

【LeetCode】417-太平洋大西洋水流问题
![[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

自定义异常

Yolov5 code reproduction and server operation

2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)

JVM architecture, classloader, parental delegation mechanism

MySQL calculate n-day retention rate

Evaluation of embedded rz/g2l processor core board and development board of Feiling
随机推荐
[leetcode] 344 reverse string
Bing.com网站
2278. 字母在字符串中的百分比
[leetcode] 200 number of islands
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
Solve the problem of frequent interruption of mobaxterm remote connection
Force deduction solution summarizes the lucky numbers in 1380 matrix
SQL transaction
搭建自己的语义分割平台deeplabV3+
Loss function and positive and negative sample allocation: Yolo series
【网络安全】网络资产收集
LeetCode刷题——两整数之和#371#Medium
4. Data splitting of Flink real-time project
5. Practice: jctree implements the annotation processor at compile time
SQL stored procedure
(4) Flink's table API and SQL table schema
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
LeetCode刷题——递增的三元子序列#334#Medium
[leetcode] 283 move zero
6092. 替换数组中的元素