GithubHelp home page GithubHelp logo

Comments (4)

stemid avatar stemid commented on August 20, 2024 4

I tried building it on Fedora by installing the following packages;

sudo dnf install bison '@Development tools' flex libedit-devel llvm6.0-devel llvm6.0-libs \
  clang-devel elfutils-libelf-devel zlib-devel llvm6.0-static bcc

But when running cmake I just get this issue.

-- Found LLVM: /usr/lib64/llvm6.0/include 6.0.1
CMake Error at build/_deps/bcc-src/CMakeLists.txt:58 (message):
  Unable to find clang libraries

I tried pointing to the LLVM dirs with -DCMAKE_PREFIX_PATH=/usr/lib64 and -DLLVM_LIBRARY_DIRS=/usr/lib64/llvm6.0/lib but no joy. Anyone got any idea how to compile this?

I can't find clang6.0 on Fedora 32, package was orphaned a while back.

from procmon-for-linux.

Worty avatar Worty commented on August 20, 2024

Arch and Fedora is using clang 10 which cant build bcc 0.10 (iovisor/bcc@1599c2ef8206988d5d)

from procmon-for-linux.

stemid avatar stemid commented on August 20, 2024

I came a bit further towards running it on Fedora with this Dockerfile but it's still generating a lot of errors and the curses UI is empty of any data so it doesn't seem to work.

Maybe it's helpful to some Fedora user. I can't spend more time on this myself. :)

FROM ubuntu:18.04

VOLUME .:/source
COPY install_bcc.sh /source/install_bcc.sh

RUN apt update
RUN apt install apt-transport-https ca-certificates gnupg software-properties-common wget -y
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
RUN apt install kitware-archive-keyring -y
RUN apt install -y cmake libsqlite3-dev bison build-essential flex git libedit-dev libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev iperf netperf arping
RUN bash /source/install_bcc.sh
ENTRYPOINT /bin/bash

install_bcc.sh is simply;

#!/usr/bin/env bash

cd /source
git clone --branch tag_v0.10.0 https://github.com/iovisor/bcc.git
mkdir bcc/build
cd bcc/build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j$(nproc)
make install
$ docker build -t procmon .
$ docker run -ti -v "$(pwd)/:/source" --privileged procmon

And then you can finish the build in the container and find the binary in build/.

I've downgraded my F32 system to cgroupsv1 because I feel that podman isn't ready for daily use yet.

from procmon-for-linux.

MarioHewardt avatar MarioHewardt commented on August 20, 2024

Duplicate of #70

from procmon-for-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.