我在cent os 7上运行bcc工具。我已经采取了google上所有可用的步骤:
1.设置LD库路径
1.可从以下网址获得:https://blogs.oracle.com/linux/post/intro-to-bcc-2
- llvmtoolset已安装
我只想在这台机器上运行bcc-tools。但是这个错误不想消失。谁能告诉我我还应该做什么来解决这个错误?
[root@node1 tools]# ./tcptracer
Traceback (most recent call last):
File "./tcptracer", line 18, in <module>
from bcc import BPF
File "/usr/lib/python2.7/site-packages/bcc/__init__.py", line 27, in <module>
from .libbcc import lib, bcc_symbol, bcc_symbol_option, bcc_stacktrace_build_id, _SYM_CB_TYPE
File "/usr/lib/python2.7/site-packages/bcc/libbcc.py", line 17, in <module>
lib = ct.CDLL("libbcc.so.0", use_errno=True)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 360, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libclangFrontend.so.5: cannot open shared object file: No such file or directory
1条答案
按热度按时间egmofgnx1#
我没有启用llvm工具,使用的是:
以上解决了这个问题,但出现了另一个问题: