当前位置:网站首页>/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边栏推荐
- [leetcode] 344 reverse string
- Two traversal sequences are known to construct binary trees
- Real estate market trend outlook in 2022
- LeetCode刷题——去除重复字母#316#Medium
- (Video + graphic) machine learning introduction series - Chapter 5 machine learning practice
- Wechat Alipay account system and payment interface business process
- Bing. Site Internet
- 【LeetCode】344-反转字符串
- MySQL -- Index Optimization -- order by
- List of sergeant schools
猜你喜欢

已知兩種遍曆序列構造二叉樹

Leetcode skimming -- count the number of numbers with different numbers 357 medium

How to find a sense of career direction
![[leetcode] 417 - Pacific Atlantic current problem](/img/30/c541bc1e81eb4e348ca11116a05e84.png)
[leetcode] 417 - Pacific Atlantic current problem

LeetCode刷题——递增的三元子序列#334#Medium

【LeetCode】417-太平洋大西洋水流问题

Thoroughly understand browser strong cache and negotiation cache
![[development environment] install the Chinese language pack for the 2013 version of visual studio community (install test agents 2013 | install visual studio 2013 simplified Chinese)](/img/cf/38e4035c3b318814672f21c8a42618.jpg)
[development environment] install the Chinese language pack for the 2013 version of visual studio community (install test agents 2013 | install visual studio 2013 simplified Chinese)

yolo格式数据集处理(xml转txt)

20_ Redis_ Sentinel mode
随机推荐
[leetcode] 977 square of ordered array
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
【网络安全】网络资产收集
Bing. Com website
[salesforce] how to confirm your salesforce version?
10_ Redis_ geospatial_ command
Deux séquences ergodiques connues pour construire des arbres binaires
【Salesforce】如何确认你的Salesforce版本?
4. Jctree related knowledge learning
6095. Strong password checker II
PTA 天梯赛习题集 L2-001 城市间紧急救援
Bing.com网站
微信支付宝账户体系和支付接口业务流程
11_ Redis_ Hyperloglog_ command
Party History Documentary theme public welfare digital cultural and creative products officially launched
[leetcode] 19 delete the penultimate node of the linked list
(Video + graphic) machine learning introduction series - Chapter 5 machine learning practice
高考录取分数线爬虫
Folium, diagnosis and close contact trajectory above
2303. Calculate the total tax payable