当前位置:网站首页>/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边栏推荐
猜你喜欢

Ant group's large-scale map computing system tugraph passed the national evaluation

Aike AI frontier promotion (7.2)

【Salesforce】如何确认你的Salesforce版本?

The outline dimension function application of small motherboard

使用 percona 工具给 MySQL 表加字段中断后该如何操作

Comparison between rstan Bayesian regression model and standard linear regression model of R language MCMC

《大学“电路分析基础”课程实验合集.实验七》丨正弦稳态电路的研究

2022 年辽宁省大学生数学建模A、B、C题(相关论文及模型程序代码网盘下载)

蚂蚁集团大规模图计算系统TuGraph通过国家级评测

Two traversal sequences are known to construct binary trees
随机推荐
Wise target detection 23 - pytoch builds SSD target detection platform
【LeetCode】977-有序數組的平方
2279. Maximum number of backpacks filled with stones
Custom exception
6095. Strong password checker II
6091. 划分数组使最大差为 K
愛可可AI前沿推介(7.2)
PyObject 转 char* (string)
Target detection - make your own deep learning target detection data set with labelimg
已知两种遍历序列构造二叉树
制作p12证书[通俗易懂]
【LeetCode】417-太平洋大西洋水流问题
How to intercept the value of a key from the JSON string returned by wechat?
6096. 咒语和药水的成功对数
[experience cloud] how to get the metadata of experience cloud in vscode
高考分数线爬取
[2. Basics of Delphi grammar] 3 Object Pascal constants and variables
C # get PLC information (kepserver) II
Soul torture, what is AQS???
6091. Divide the array so that the maximum difference is K