当前位置:网站首页>/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边栏推荐
- 17_ Redis_ Redis publish subscription
- 【LeetCode】1162-地图分析
- 【LeetCode】486-预测赢家
- 16_ Redis_ Redis persistence
- FPGA - clock-03-clock management module (CMT) of internal structure of 7 Series FPGA
- 10_ Redis_ geospatial_ command
- 2303. 计算应缴税款总额
- Oracle primary key auto increment
- 6095. Strong password checker II
- 2279. 装满石头的背包的最大数量
猜你喜欢

Pytoch saves tensor to Mat file

03.golang初步使用

yolo格式数据集处理(xml转txt)
![[salesforce] how to confirm your salesforce version?](/img/ce/4c844b1b686397faa1b6aa3d57e034.png)
[salesforce] how to confirm your salesforce version?

2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)

Leetcode skimming - remove duplicate letters 316 medium

I made an istio workshop. This is the first introduction

Let your HMI have more advantages. Fet-g2ld-c core board is a good choice

Leetcode skimming -- count the number of numbers with different numbers 357 medium

PTA 天梯赛习题集 L2-001 城市间紧急救援
随机推荐
[leetcode] 695 - maximum area of the island
【LeetCode】977-有序数组的平方
Loss function and positive and negative sample allocation: Yolo series
Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
6095. Strong password checker II
Steps for Navicat to create a new database
Oracle primary key auto increment
微信支付宝账户体系和支付接口业务流程
03.golang初步使用
Redux - detailed explanation
6.12 企业内部upp平台(Unified Process Platform)的关键一刻
03. Preliminary use of golang
【Leetcode】167-两数之和II -输入有序数组
【LeetCode】877-石子游戏
YOLOV5 代码复现以及搭载服务器运行
Download blender on Alibaba cloud image station
Two traversal sequences are known to construct binary trees
【LeetCode】486-预测赢家
Let your HMI have more advantages. Fet-g2ld-c core board is a good choice
There are 7 seats with great variety, Wuling Jiachen has outstanding product power, large humanized space, and the key price is really fragrant