当前位置:网站首页>locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db‘: 没有那个文件或目录
locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db‘: 没有那个文件或目录
2022-07-02 12:13:00 【六位元素】
目录
场景
当我们执行编译时需要使用操作系统的 locate 命令加载库文件时,报错如下:
[[email protected] ~]# locate lselinux
locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db': 没有那个文件或目录出现问题
locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db': 没有那个文件或目录
问题分析
使用 locate 加载库文件时,由于没有文件索引关系,导致搜索不到库文件,从而报错。
解决方法
更新库文件索引关系
[[email protected] ~]# updatedb再次执行 locate 成功
其他
通常情况下如果你的操作系统中没有 locate 命令,在你按如下方法安装该工具后,立马执行也会报场景描述中的错误
yum install -y mlocate边栏推荐
- Real estate market trend outlook in 2022
- 2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)
- 二叉树前,中,后序遍历
- . Net again! Happy 20th birthday
- College entrance examination admission score line crawler
- 【LeetCode】200-岛屿数量
- 16_ Redis_ Redis persistence
- Loss function and positive and negative sample allocation: Yolo series
- 彻底弄懂浏览器强缓存和协商缓存
- How to avoid 7 common problems in mobile and network availability testing
猜你喜欢

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

How to intercept the value of a key from the JSON string returned by wechat?

Steps for Navicat to create a new database

【LeetCode】1254-统计封闭岛屿的数量
![[experience cloud] how to get the metadata of experience cloud in vscode](/img/45/012c2265402ba1b44f4497f468bc61.png)
[experience cloud] how to get the metadata of experience cloud in vscode

. Solution to the problem of Chinese garbled code when net core reads files

树-二叉搜索树

17_ Redis_ Redis publish subscription

Oracle primary key auto increment

Loss function and positive and negative sample allocation: Yolo series
随机推荐
/bin/ld: 找不到 -lgssapi_krb5
【LeetCode】417-太平洋大西洋水流问题
List of sergeant schools
2279. 装满石头的背包的最大数量
Markdown tutorial
【网络安全】网络资产收集
6096. 咒语和药水的成功对数
04.进入云原生后的企业级应用构建的一些思考
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
[leetcode] 1162 map analysis
How to avoid 7 common problems in mobile and network availability testing
Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568
[leetcode] 200 number of islands
/bin/ld: 找不到 -lcrypto
2303. Calculate the total tax payable
[network security] network asset collection
【LeetCode】577-反转字符串中的单词 III
(4) Flink's table API and SQL table schema
【LeetCode】977-有序数组的平方
03. Preliminary use of golang