我想使用 Clang 的pp-trace
工具(在 Kubuntu 16.04 机器上)
我已经clang
安装了。输入后显示pp-trace
:
The program 'pp-trace' is currently not installed. You can install it by typing:
apt install clang
但 ...
$ # apt-get install clang
Reading package lists... Done
Building dependency tree
Reading state information... Done
clang is already the newest version (1:3.8-33ubuntu3.1).
0 upgraded, 0 newly installed, 0 to remove and 103 not upgraded.
并且apt-cache search pp-trace
,apt-cache search pptrace
也不会产生任何结果。实际上,
# ls -la /usr/bin/pp-trace
lrwxrwxrwx 1 root root 28 jun 21 08:33 /usr/bin/pp-trace -> ../lib/llvm-3.8/bin/pp-trace
# ls -la /usr/lib/llvm-3.8/bin/pp-trace
ls: cannot access '/usr/lib/llvm-3.8/bin/pp-trace': No such file or directory
卸载并重新安装 clang-3.8 无效。我该怎么办?
答案1
通过查看 packages.ubuntu.org,特别是适用于 AMD64 上的 Xenial Xerus 的 llvm-3.8 软件包,看起来文件只是丢失了。
这Debian 错误可能相关。