当前位置:网站首页>/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边栏推荐
- Storage read-write speed and network measurement based on rz/g2l | ok-g2ld-c development board
- 2279. 装满石头的背包的最大数量
- 【LeetCode】19-删除链表的倒数第N个结点
- [leetcode] 1162 map analysis
- 密码学基础知识
- [experience cloud] how to get the metadata of experience cloud in vscode
- 微信支付宝账户体系和支付接口业务流程
- I made an istio workshop. This is the first introduction
- 6095. Strong password checker II
- MD5 encryption
猜你喜欢

6.12 critical moment of Unified Process Platform

14_ Redis_ Optimistic lock

Steps for Navicat to create a new database

6.12 企业内部upp平台(Unified Process Platform)的关键一刻

密码学基础知识

Wechat Alipay account system and payment interface business process

怎样从微信返回的json字符串中截取某个key的值?

How to avoid 7 common problems in mobile and network availability testing

Markdown tutorial

Oracle primary key auto increment
随机推荐
高考分数线爬取
Build your own semantic segmentation platform deeplabv3+
[leetcode] 1905 statistics sub Island
Let your HMI have more advantages. Fet-g2ld-c core board is a good choice
[leetcode] 877 stone game
Yolo format data set processing (XML to txt)
FPGA - clock-03-clock management module (CMT) of internal structure of 7 Series FPGA
2278. Percentage of letters in string
【Leetcode】167-两数之和II -输入有序数组
6.12 critical moment of Unified Process Platform
微信支付宝账户体系和支付接口业务流程
Pytoch saves tensor to Mat file
14_ Redis_ Optimistic lock
Infra11199 database system
College entrance examination score line climbing
MD5加密
4. Data splitting of Flink real-time project
【LeetCode】577-反转字符串中的单词 III
【LeetCode】1140-石子游戏II
【Salesforce】如何确认你的Salesforce版本?