当前位置:网站首页>/Bin/ld: cannot find -lxml2
/Bin/ld: cannot find -lxml2
2022-07-02 15:47:00 【Six element】
Catalog
scene
When we compile and install a source package , Re execution configure Sometimes because the library file cannot be found , An error is as follows :
[[email protected] ~]# ./configure
/bin/ld: Can't find -lxml2Problems arise
/bin/ld: Can't find -lxml2
Problem analysis
Because compilation needs to use lib The library files , But because there is no file index relationship , As a result, the library file cannot be searched , To report a mistake .
resolvent
By using locate Load library file , Create index relationship , to update lib library , To solve this problem .
First , Load library file , Create index relationship
[[email protected] ~]# locate libxml2
/usr/lib64/libxml2.so.2
/usr/lib64/libxml2.so.2.9.1
/usr/lib64/girepository-1.0/libxml2-2.0.typelib
/usr/share/doc/libxml2-2.9.1
/usr/share/doc/libxml2-2.9.1/AUTHORS
/usr/share/doc/libxml2-2.9.1/Copyright
/usr/share/doc/libxml2-2.9.1/NEWS
/usr/share/doc/libxml2-2.9.1/README
/usr/share/doc/libxml2-2.9.1/TODOthen , Create a library file soft link
[[email protected] ~]# ln -s /usr/lib64/libxml2.so.2 /usr/lib/libxml2.soafter , Compile and execute again configure that will do
[[email protected] ~]# ./configure边栏推荐
- 奥比中光 astra: Could not open “2bc5/[email protected]/6“: Failed to set USB interface
- 终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)
- How to intercept the value of a key from the JSON string returned by wechat?
- Lseek error
- Basic knowledge of cryptography
- 《大学“电路分析基础”课程实验合集.实验七》丨正弦稳态电路的研究
- Xpt2046 four wire resistive touch screen
- fastjson List转JSONArray以及JSONArray转List「建议收藏」
- 《大学“电路分析基础”课程实验合集.实验五》丨线性有源二端网络等效电路的研究
- 高考分数线爬取
猜你喜欢

Review materials for the special topic of analog electronics with all essence: basic amplification circuit knowledge points

Experiment collection of University "Fundamentals of circuit analysis". Experiment 6 - observation and measurement of typical signals

Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)

PHP static members

【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData

Loss function and positive and negative sample allocation: Yolo series

PostgresSQL 流复制 主备切换 主库无读写宕机场景

(Video + graphic) machine learning introduction series - Chapter 5 machine learning practice

全是精华的模电专题复习资料:基本放大电路知识点

Two traversal sequences are known to construct binary trees
随机推荐
Solve the problem of base64encoder error
/bin/ld: 找不到 -lxml2
终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)
已知兩種遍曆序列構造二叉樹
【LeetCode】695-岛屿的最大面积
The outline dimension function application of small motherboard
beforeEach
【LeetCode】876-链表的中间结点
[leetcode] 19 delete the penultimate node of the linked list
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
(万字精华知识总结)Shell脚本编程基础知识
For the problem that Folium map cannot be displayed, the temporary solution is as follows
[leetcode] 1162 map analysis
Why does the system convert the temp environment variable to a short file name?
彻底弄懂浏览器强缓存和协商缓存
【LeetCode】1140-石子游戏II
高考录取分数线爬取
PyObject 转 char* (string)
【LeetCode】344-反转字符串
ssh/scp 使不提示 All activities are monitored and reported.