当前位置:网站首页>/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边栏推荐
- PTA ladder game exercise set l2-001 inter city emergency rescue
- folium,确诊和密接轨迹上图
- [leetcode] 1254 - count the number of closed Islands
- Real estate market trend outlook in 2022
- MySQL -- Index Optimization -- order by
- 12_ Redis_ Bitmap_ command
- 02. After containerization, you must face golang
- yolo格式数据集处理(xml转txt)
- 【网络安全】网络资产收集
- How to intercept the value of a key from the JSON string returned by wechat?
猜你喜欢

Loss function and positive and negative sample allocation: Yolo series

Bing. Site Internet

03. Preliminary use of golang

Build your own semantic segmentation platform deeplabv3+

SQL stored procedure

Pytoch saves tensor to Mat file

【Salesforce】如何确认你的Salesforce版本?

LeetCode刷题——两整数之和#371#Medium

MySQL -- Index Optimization -- order by

【LeetCode】417-太平洋大西洋水流问题
随机推荐
04.进入云原生后的企业级应用构建的一些思考
Markdown tutorial
党史纪实主题公益数字文创产品正式上线
6.12 企业内部upp平台(Unified Process Platform)的关键一刻
Bing. Com website
(4) Flink's table API and SQL table schema
【LeetCode】977-有序數組的平方
6.12 critical moment of Unified Process Platform
高考录取分数线爬取
14_ Redis_ Optimistic lock
Wechat Alipay account system and payment interface business process
Pytorch 保存tensor到.mat文件
. Net again! Happy 20th birthday
Cultural scores of summer college entrance examination
College entrance examination score line climbing
6092. 替换数组中的元素
MD5 encryption
语义分割学习笔记(一)
Name of institution approved in advance
Steps for Navicat to create a new database