当前位置:网站首页>/bin/ld: 找不到 -lgssapi_krb5
/bin/ld: 找不到 -lgssapi_krb5
2022-07-02 12:13:00 【六位元素】
目录
场景
当我们对某个源码包进行编译安装,再执行 configure 有时候会因为找不到库文件,报错如下:
[[email protected] ~]# ./configure
/bin/ld: 找不到 -lgssapi_krb5
出现问题
/bin/ld: 找不到 -lgssapi_krb5
问题分析
因为编译要使用 lib 库文件,但是由于没有文件索引关系,导致搜索不到库文件,从而报错。
解决方法
通过使用 locate 加载库文件,创建索引关系,更新 lib 库,从而解决这个问题。
首先,加载库文件,创建索引关系
[[email protected] ~]# locate libgssapi_krb5
/usr/lib64/libgssapi_krb5.so.2
/usr/lib64/libgssapi_krb5.so.2.2
然后,创建库文件软链接
[[email protected] ~]# ln -s /usr/lib64/libgssapi_krb5.so.2 /usr/lib/libgssapi_krb5.so
之后,再次编译执行 configure 即可
[[email protected] ~]# ./configure
边栏推荐
- 彻底弄懂浏览器强缓存和协商缓存
- Pytorch 保存tensor到.mat文件
- 提前批院校名称
- 10_ Redis_ geospatial_ command
- Solve the problem of frequent interruption of mobaxterm remote connection
- YOLOV5 代码复现以及搭载服务器运行
- 【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
- MD5加密
- 微信支付宝账户体系和支付接口业务流程
- Loss function and positive and negative sample allocation: Yolo series
猜你喜欢
Semantic segmentation learning notes (1)
LeetCode刷题——递增的三元子序列#334#Medium
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
Leetcode skimming -- sum of two integers 371 medium
[leetcode] 1162 map analysis
Yolo format data set processing (XML to txt)
Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568
怎样从微信返回的json字符串中截取某个key的值?
Build your own semantic segmentation platform deeplabv3+
Let your HMI have more advantages. Fet-g2ld-c core board is a good choice
随机推荐
19_ Redis_ Manually configure the host after downtime
SQL transaction
损失函数与正负样本分配:YOLO系列
Leetcode question brushing - parity linked list 328 medium
[leetcode] 417 - Pacific Atlantic current problem
[leetcode] 1020 number of enclaves
Two traversal sequences are known to construct binary trees
【LeetCode】1020-飞地的数量
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
高考分数线爬取
Summary of the first three passes of sqli Labs
Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)
(4) Flink's table API and SQL table schema
[network security] network asset collection
Leetcode skimming - remove duplicate letters 316 medium
Redux——详解
[experience cloud] how to get the metadata of experience cloud in vscode
College entrance examination score line climbing
6091. Divide the array so that the maximum difference is K
[leetcode] 876 intermediate node of linked list