当前位置:网站首页>/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
边栏推荐
- 终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)
- 【LeetCode】577-反转字符串中的单词 III
- Leetcode skimming -- count the number of numbers with different numbers 357 medium
- 高考录取分数线爬取
- Pytorch 保存tensor到.mat文件
- folium,确诊和密接轨迹上图
- Redux - detailed explanation
- Summary of the first three passes of sqli Labs
- Markdown tutorial
- 4. Jctree related knowledge learning
猜你喜欢
Bing.com网站
密码学基础知识
Semantic segmentation learning notes (1)
怎样从微信返回的json字符串中截取某个key的值?
终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)
[leetcode] 1905 statistics sub Island
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
[leetcode] 417 - Pacific Atlantic current problem
5. Practice: jctree implements the annotation processor at compile time
Guangzhou Emergency Management Bureau issued a high temperature and high humidity chemical safety reminder in July
随机推荐
Two traversal sequences are known to construct binary trees
Yolov5 code reproduction and server operation
Loss function and positive and negative sample allocation: Yolo series
【LeetCode】977-有序数组的平方
彻底弄懂浏览器强缓存和协商缓存
15_ Redis_ Redis. Conf detailed explanation
[leetcode] 344 reverse string
【LeetCode】577-反转字符串中的单词 III
Bing.com网站
20_ Redis_ Sentinel mode
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
高考录取分数线爬取
【LeetCode】1162-地图分析
Infra11199 database system
【Leetcode】167-两数之和II -输入有序数组
2022 年辽宁省大学生数学建模A、B、C题(相关论文及模型程序代码网盘下载)
Thoroughly understand browser strong cache and negotiation cache
18_ Redis_ Redis master-slave replication & cluster building
【Salesforce】如何确认你的Salesforce版本?
02. After containerization, you must face golang