Recently, when I try to build an open source project, I meet the following compile error:
1 2 3 4 |
fatal error: 'libelf.h' file not found #include <libelf.h> ^ 1 error generated. |
The solution is installing elfutils-libelf-devel
package:
1 |
sudo yum install elfutils-libelf-devel |
Or:
1 |
sudo dnf install elfutils-libelf-devel |