Code Monkey home page Code Monkey logo

Comments (4)

mtb0x1 avatar mtb0x1 commented on July 20, 2024

I am not familiar with the amazon linux images, but it seems that they are either using an old version of glibc or using musl.

  1. find out the version you have : ldd --version | grep -i 'glibc'
  2. if the version is older than 2.29 then you need to build bpftop from source.
    (you do have the same problem with cross as it's built with a newer version of glibc than the one you might have, so cargo install cross --git https://github.com/cross-rs/cross might work as it will build cross from sources.)

from bpftop.

jfernandez avatar jfernandez commented on July 20, 2024

Yes, you just need to build it from the source. You don't actually need cross if you are building it on your target host. Just run cargo build --release.

from bpftop.

kenanfarukcakir avatar kenanfarukcakir commented on July 20, 2024

Thanks for the replies. Managed to get it working 🥳
Built it from the source, just needed to re-install cargo with rustup. I've installed with yum package manager beforehand. It seemed rustc version was outdated.

 $ cargo build --release
error: package `ratatui v0.26.1` cannot be built because it requires rustc 1.70.0 or newer, while the currently active rustc version is 1.68.2
Either upgrade to rustc 1.70.0 or newer, or use
cargo update -p [email protected] --precise ver
where `ver` is the latest version of `ratatui` supporting rustc 1.68.2

$ rustc -V
rustc 1.68.2 (9eb3afe9e 2023-03-27) (Amazon Linux 1.68.2-1.amzn2.0.4)
$ cargo -V
cargo 1.68.2

After updating rustc version by installing with rustup, it worked fine.
curl https://sh.rustup.rs/ -sSf | sh

$ rustc -V
rustc 1.76.0 (07dca489a 2024-02-04)
$ cargo -V
cargo 1.76.0 (c84b36747 2024-01-18)

from bpftop.

jfernandez avatar jfernandez commented on July 20, 2024

Glad it worked out!

from bpftop.

Related Issues (15)

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.