gpt4 book ai didi

linux - centos 上的 eBPF (bcc)

转载 作者:太空狗 更新时间:2023-10-29 12:40:35 27 4
gpt4 key购买 nike

可以部署 bcc --> https://iovisor.github.io/bcc/

...在 centos/redhat SO 上?

有人知道从centos编译bcc工具有什么问题吗? (所有依赖项都已安装),但是当我执行最后一步时:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr

返回:

[root@ebpf build]# cmake -DCMAKE_INSTALL_PREFIX=/usr .. -- Latest recognized Git tag is v0.3.0 -- Git HEAD is 007d28c534e1a98e6017ac9f4c8cb1c0f5244388 -- Revision is 0.3.0-007d28c5 CMake Error at CMakeLists.txt:22 (find_package): Could not find a package configuration file provided by "LLVM" with any of the following names:

LLVMConfig.cmake
llvm-config.cmake

Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred! See also "/root/bcc/build/CMakeFiles/CMakeOutput.log".

最佳答案

对于 llvm 问题。只需在 CLI 下运行:
cp/usr/share/llvm/cmake/LLVM-Config.cmake/usr/share/llvm/cmake/llvm-config.cmake

关于linux - centos 上的 eBPF (bcc),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45800090/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com