当前位置:网站首页>/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】1140-石子游戏II
- 【Leetcode】167-两数之和II -输入有序数组
- Thoroughly understand browser strong cache and negotiation cache
- [network security] network asset collection
- 怎样从微信返回的json字符串中截取某个key的值?
- 百变大7座,五菱佳辰产品力出众,人性化大空间,关键价格真香
- 16_ Redis_ Redis persistence
- [leetcode] 1162 map analysis
- . Solution to the problem of Chinese garbled code when net core reads files
- [leetcode] 167 - sum of two numbers II - enter an ordered array
猜你喜欢
MySQL calculate n-day retention rate
党史纪实主题公益数字文创产品正式上线
Two traversal sequences are known to construct binary trees
Beijing rental data analysis
I made an istio workshop. This is the first introduction
[leetcode] 417 - Pacific Atlantic current problem
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
[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)
微信支付宝账户体系和支付接口业务流程
Semantic segmentation learning notes (1)
随机推荐
5. Practice: jctree implements the annotation processor at compile time
【LeetCode】877-石子游戏
SQL stored procedure
NBA player analysis
Download blender on Alibaba cloud image station
LeetCode刷题——去除重复字母#316#Medium
【LeetCode】577-反转字符串中的单词 III
Leetcode skimming -- sum of two integers 371 medium
Leetcode skimming -- count the number of numbers with different numbers 357 medium
[leetcode] 189 rotation array
提前批院校名称
LeetCode刷题——奇偶链表#328#Medium
12_ Redis_ Bitmap_ command
MD5 encryption
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
已知兩種遍曆序列構造二叉樹
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
【LeetCode】344-反转字符串
Yolo format data set processing (XML to txt)
6.12 企业内部upp平台(Unified Process Platform)的关键一刻