-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing ebpf_exporter on Amazon Linux 2 #240
Comments
You don't need You can still build a dynamically linked version:
Let me know if that works for you. |
I added |
Thanks for the response and suggestions. Could not locate 'kernel-libbpf-devel' from yum repo, so I used 'libbpf-devel' in the the following set of commands on a new instance:
The previous issue appears resolved, however a new set of errors appeared in the dynamic build, was not sure if this is related to using 'libbpf-devel' instead:
|
It looks like your distro has a libbpf that is too old. I would recommend to either (in order of preference):
|
I tried option 3 with this set of commands for install to work. Thanks a lot for the assistance, and appreciate taking the time to add the feature to simplify the install. I will test the examples and see if any other issues arise.
|
Confirmed that examples install with command on instructions as ec2-user and exporter can run biolatency example. That should be everything. |
Attempted installation on Amazon Linux 2 with the following commands using bcc install from source:
Result was an error in 'make build' step shown below, and this was the same result using the bcc package install from Amazon Linux 2 (sudo amazon-linux-extras install BCC), keeping in mind I was not able to install netperf listed above from rpm:
The locations of the missing library, along with another one, are here:
However, when I try to modify libbpfgo.h to point bpf.h (and libbpf.h) from another existing location such as inside /home/ec2-user/go, the build has a very long list of errors.
The text was updated successfully, but these errors were encountered: