当前位置:网站首页>/bin/ld: 找不到 -lpam
/bin/ld: 找不到 -lpam
2022-07-02 12:13:00 【六位元素】
目录
场景
当我们对某个源码包进行编译安装,再执行 configure 有时候会因为找不到库文件,报错如下:
[[email protected] ~]# ./configure
/bin/ld: 找不到 -lpam出现问题
/bin/ld: 找不到 -lpam
问题分析
因为编译要使用 lib 库文件,但是由于没有文件索引关系,导致搜索不到库文件,从而报错。
解决方法
通过使用 locate 加载库文件,创建索引关系,更新 lib 库,从而解决这个问题。
首先,加载库文件,创建索引关系
[[email protected] ~]# locate libpam
/usr/lib64/libpam.so.0
/usr/lib64/libpam.so.0.83.1
/usr/lib64/libpam_misc.so.0
/usr/lib64/libpam_misc.so.0.82.0
/usr/lib64/libpamc.so.0
/usr/lib64/libpamc.so.0.82.1然后,创建库文件软链接
[[email protected] ~]# ln -s /usr/lib64/libpam.so.0 /usr/lib/libpam.so之后,再次编译执行 configure 即可
[[email protected] ~]# ./configure边栏推荐
- How to choose a third-party software testing organization for automated acceptance testing of mobile applications
- 16_ Redis_ Redis persistence
- [leetcode] 283 move zero
- LeetCode_ String_ Simple_ 412.Fizz Buzz
- Redux - detailed explanation
- LeetCode刷题——奇偶链表#328#Medium
- MySQL calculate n-day retention rate
- 高考录取分数线爬取
- 百变大7座,五菱佳辰产品力出众,人性化大空间,关键价格真香
- Summary of the first three passes of sqli Labs
猜你喜欢

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

Oracle primary key auto increment

Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568

自定义异常

Leetcode skimming -- sum of two integers 371 medium

6.12 critical moment of Unified Process Platform

Loss function and positive and negative sample allocation: Yolo series
![[leetcode] 1162 map analysis](/img/9a/d04bde0417d4d5232950a4e260eb91.png)
[leetcode] 1162 map analysis

LeetCode刷题——递增的三元子序列#334#Medium

LeetCode刷题——去除重复字母#316#Medium
随机推荐
高考录取分数线爬取
Yolov5 code reproduction and server operation
【LeetCode】1905-统计子岛屿
【LeetCode】200-岛屿数量
List of sergeant schools
[leetcode] 577 reverse word III in string
[leetcode] 1162 map analysis
Bing.com网站
[leetcode] 1140 stone game II
NBA player analysis
19_ Redis_ Manually configure the host after downtime
MySQL -- Index Optimization -- order by
Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568
15_ Redis_ Redis. Conf detailed explanation
Cultural scores of summer college entrance examination
【LeetCode】486-预测赢家
Let your HMI have more advantages. Fet-g2ld-c core board is a good choice
搭建自己的语义分割平台deeplabV3+
Markdown tutorial
2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)