当前位置:网站首页>/bin/ld: 找不到 -lxslt
/bin/ld: 找不到 -lxslt
2022-07-02 12:13:00 【六位元素】
目录
场景
当我们对某个源码包进行编译安装,再执行 configure 有时候会因为找不到库文件,报错如下:
[[email protected] ~]# ./configure
/bin/ld: 找不到 -lxslt出现问题
/bin/ld: 找不到 -lxslt
问题分析
因为编译要使用 lib 库文件,但是由于没有文件索引关系,导致搜索不到库文件,从而报错。
解决方法
通过使用 locate 加载库文件,创建索引关系,更新 lib 库,从而解决这个问题。
首先,加载库文件,创建索引关系
[[email protected] ~]# locate libxslt
/usr/lib64/libxslt-plugins
/usr/lib64/libxslt.so.1
/usr/lib64/libxslt.so.1.1.28
/usr/share/doc/libxslt-1.1.28
/usr/share/doc/libxslt-1.1.28/AUTHORS
/usr/share/doc/libxslt-1.1.28/ChangeLog.gz
/usr/share/doc/libxslt-1.1.28/Copyright
/usr/share/doc/libxslt-1.1.28/FEATURES
/usr/share/doc/libxslt-1.1.28/NEWS
/usr/share/doc/libxslt-1.1.28/README然后,创建库文件软链接
[[email protected] ~]# ln -s /usr/lib64/libxslt.so.1 /usr/lib/libxslt.so之后,再次编译执行 configure 即可
[[email protected] ~]# ./configure边栏推荐
- 高考录取分数线爬虫
- Pytorch 保存tensor到.mat文件
- Build your own semantic segmentation platform deeplabv3+
- LeetCode刷题——奇偶链表#328#Medium
- 2303. Calculate the total tax payable
- [leetcode] 1140 stone game II
- Wechat Alipay account system and payment interface business process
- [leetcode] 1254 - count the number of closed Islands
- 6096. 咒语和药水的成功对数
- 6090. Minimax games
猜你喜欢

Wechat Alipay account system and payment interface business process

18_ Redis_ Redis master-slave replication & cluster building

Yolov5 code reproduction and server operation

Pytorch 保存tensor到.mat文件

Leetcode skimming - remove duplicate letters 316 medium

4. Jctree related knowledge learning

Basic knowledge of cryptography

Download blender on Alibaba cloud image station

Bing. Com website

How to choose a third-party software testing organization for automated acceptance testing of mobile applications
随机推荐
16_ Redis_ Redis persistence
Case introduction and problem analysis of microservice
怎样从微信返回的json字符串中截取某个key的值?
Yolo format data set processing (XML to txt)
已知两种遍历序列构造二叉树
Engineer evaluation | rk3568 development board hands-on test
17_ Redis_ Redis publish subscription
LeetCode刷题——验证二叉树的前序序列化#331#Medium
4. Data splitting of Flink real-time project
Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
Steps for Navicat to create a new database
【LeetCode】977-有序數組的平方
Bing.com网站
彻底弄懂浏览器强缓存和协商缓存
19_ Redis_ Manually configure the host after downtime
Two traversal sequences are known to construct binary trees
【LeetCode】695-岛屿的最大面积
【Leetcode】167-两数之和II -输入有序数组
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
Real estate market trend outlook in 2022