当前位置:网站首页>/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边栏推荐
- There are 7 seats with great variety, Wuling Jiachen has outstanding product power, large humanized space, and the key price is really fragrant
- 微信支付宝账户体系和支付接口业务流程
- 【LeetCode】1162-地图分析
- 6091. 划分数组使最大差为 K
- [leetcode] 19 delete the penultimate node of the linked list
- 怎样从微信返回的json字符串中截取某个key的值?
- 20_ Redis_ Sentinel mode
- 飞凌嵌入式RZ/G2L处理器核心板及开发板上手评测
- 6095. 强密码检验器 II
- 自定义异常
猜你喜欢

Pytorch 保存tensor到.mat文件

Beijing rental data analysis

Engineer evaluation | rk3568 development board hands-on test

How to avoid 7 common problems in mobile and network availability testing

PTA 天梯赛习题集 L2-001 城市间紧急救援

【网络安全】网络资产收集

Thoroughly understand browser strong cache and negotiation cache

搭建自己的语义分割平台deeplabV3+

LeetCode刷题——统计各位数字都不同的数字个数#357#Medium

LeetCode刷题——去除重复字母#316#Medium
随机推荐
College entrance examination score line climbing
2278. Percentage of letters in string
党史纪实主题公益数字文创产品正式上线
02.面向容器化后,必须面对golang
[leetcode] 977 - carré du tableau ordonné
[leetcode] 344 reverse string
LeetCode刷题——两整数之和#371#Medium
[leetcode] 695 - maximum area of the island
已知兩種遍曆序列構造二叉樹
10_ Redis_ geospatial_ command
LeetCode_ String_ Simple_ 412.Fizz Buzz
13_ Redis_ affair
2278. 字母在字符串中的百分比
高考录取分数线爬虫
Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
. Net again! Happy 20th birthday
folium,确诊和密接轨迹上图
6090. 极大极小游戏
MySQL calculate n-day retention rate
Yolo format data set processing (XML to txt)