当前位置:网站首页>/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
边栏推荐
- 搭建自己的语义分割平台deeplabV3+
- 【LeetCode】1020-飞地的数量
- 【LeetCode】189-轮转数组
- [leetcode] 1254 - count the number of closed Islands
- 【LeetCode】1254-统计封闭岛屿的数量
- Force deduction solution summarizes the lucky numbers in 1380 matrix
- [salesforce] how to confirm your salesforce version?
- Name of institution approved in advance
- Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
- YOLOV5 代码复现以及搭载服务器运行
猜你喜欢
Evaluation of embedded rz/g2l processor core board and development board of Feiling
SQL transaction
Bing.com网站
Engineer evaluation | rk3568 development board hands-on test
18_ Redis_ Redis master-slave replication & cluster building
语义分割学习笔记(一)
【LeetCode】1254-统计封闭岛屿的数量
SQL stored procedure
Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
Beijing rental data analysis
随机推荐
Deux séquences ergodiques connues pour construire des arbres binaires
LeetCode刷题——奇偶链表#328#Medium
LeetCode刷题——递增的三元子序列#334#Medium
Leetcode skimming -- sum of two integers 371 medium
Case introduction and problem analysis of microservice
MD5加密
Bing. Site Internet
【LeetCode】283-移动零
Leetcode skimming -- count the number of numbers with different numbers 357 medium
10_ Redis_ geospatial_ command
[network security] network asset collection
Folium, diagnosis and close contact trajectory above
Yolo format data set processing (XML to txt)
yolo格式数据集处理(xml转txt)
6090. 极大极小游戏
4. Data splitting of Flink real-time project
. Net again! Happy 20th birthday
Markdown tutorial
JVM architecture, classloader, parental delegation mechanism
Bing.com网站