当前位置:网站首页>/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
边栏推荐
- For the problem that Folium map cannot be displayed, the temporary solution is as follows
- 20_ Redis_ Sentinel mode
- 高考录取分数线爬取
- Storage read-write speed and network measurement based on rz/g2l | ok-g2ld-c development board
- [leetcode] 486 predict winners
- 15_ Redis_ Redis. Conf detailed explanation
- Real estate market trend outlook in 2022
- [leetcode] 19 delete the penultimate node of the linked list
- 【LeetCode】200-岛屿数量
- I made an istio workshop. This is the first introduction
猜你喜欢
Leetcode skimming -- sum of two integers 371 medium
Bing. Site Internet
Yolov5 code reproduction and server operation
03.golang初步使用
15_ Redis_ Redis. Conf detailed explanation
语义分割学习笔记(一)
Semantic segmentation learning notes (1)
Leetcode question brushing - parity linked list 328 medium
Case introduction and problem analysis of microservice
Loss function and positive and negative sample allocation: Yolo series
随机推荐
19_ Redis_ Manually configure the host after downtime
【LeetCode】1140-石子游戏II
folium地图无法显示的问题,临时性解决方案如下
微信支付宝账户体系和支付接口业务流程
College entrance examination score line climbing
自定义异常
【LeetCode】417-太平洋大西洋水流问题
[leetcode] 19 delete the penultimate node of the linked list
Force deduction solution summarizes the lucky numbers in 1380 matrix
Bing. Com website
已知两种遍历序列构造二叉树
[leetcode] 486 predict winners
03.golang初步使用
Storage read-write speed and network measurement based on rz/g2l | ok-g2ld-c development board
高考录取分数线爬取
2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)
Yolo format data set processing (XML to txt)
LeetCode刷题——去除重复字母#316#Medium
yolo格式数据集处理(xml转txt)
[leetcode] 977 - carré du tableau ordonné