当我查看手册页顶部的 clang-formatter 文档时,我看到以下内容。
CLANG-FORMAT(1) User Commands CLANG-FORMAT(1)
NAME
clang-format - manual page for clang-format 4.0
DESCRIPTION
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code.
如何修复在概述部分之前看到的错误?
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
如果这有什么不同,当我在 Windows 上的 Ubuntu 上的 Bash 上运行 man clang-formatter
时,我就会看到它。
/usr/bin/env 的输出没有显示任何LD_PRELOAD变量,所以我不确定为什么该命令会尝试加载libfakeroot-sysv.so em> 动态库。
最佳答案
该“ERROR”行可能实际上是在联机帮助页本身中编写的,并不是您的系统的问题。
您可以通过检查/usr/share/man 下的相关联机帮助页文件来验证这一点。
例如,我在 Ubuntu 17.04 的 modulize-4.0 联机帮助页下发现了“ERROR”行。为了验证它确实写在那里,我运行了:
zcat /usr/share/man/man1/modularize-4.0.1.gz | less
关于bash - 如何修复 LD_PRELOAD 中的 "ERROR: ld.so: object ' libfakeroot-sysv.so' 无法预加载(无法打开共享对象文件): ignored"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45652501/