Comments (4)
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.
- find out the version you have :
ldd --version | grep -i 'glibc'
- 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, socargo install cross --git https://github.com/cross-rs/cross
might work as it will build cross from sources.)
from bpftop.
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.
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.
Glad it worked out!
from bpftop.
Related Issues (18)
- Some components in graph view do not use foreground color HOT 4
- Panic when arrow up/down with no eBPF programs loaded HOT 2
- XDP programs are accounted to xdp-dispatcher HOT 11
- Occasional freeze under load HOT 3
- Sortable columns HOT 4
- Add Arm64 as target build platform HOT 3
- How to understand the cpu_time_percent(or 'Total CPU %') for multi-core CPUs? HOT 1
- Should leave alt screen in panic hook HOT 1
- Search filter for BPF programs in tabular view HOT 3
- Publish on crates.io HOT 1
- Publish Debian package HOT 4
- Publish RPM package to Fedora HOT 1
- Can we add an arm build in release page? HOT 3
- Dependency on systemd HOT 4
- Add scrollbar to tabular view
- Add option to unload ebpf programs HOT 3
- Aggregate statistics for all programs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpftop.