Skip to content
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

Make error about fatal error: libelf.h: No such file or directory #170

Closed
TestNemo opened this issue Sep 7, 2016 · 7 comments
Closed

Make error about fatal error: libelf.h: No such file or directory #170

TestNemo opened this issue Sep 7, 2016 · 7 comments

Comments

@TestNemo
Copy link

TestNemo commented Sep 7, 2016

Hi all,
My system is fedora 22, the libelf-dev package seems not be install with command: sudo dnf install libelf-dev, the error is list as bellow:

Last metadata expiration check performed 1:33:15 ago on Wed Sep 7 22:19:25 2016.
No package libelf-dev available.
Error: no package matched: libelf-dev

I have one problem during my compiling the source code, the error is listed as bellow:

[nemo@localhost simavr]$ make
make -C simavr RELEASE=0
make[1]: Entering directory '/home/nemo/extra/simavr/simavr/simavr'
make obj config
make[2]: Entering directory '/home/nemo/extra/simavr/simavr/simavr'
make[2]: Nothing to be done for 'obj'.
make[2]: Nothing to be done for 'config'.
make[2]: Leaving directory '/home/nemo/extra/simavr/simavr/simavr'
make libsimavr run_avr
make[2]: Entering directory '/home/nemo/extra/simavr/simavr/simavr'
sim/sim_elf.c:32:20: fatal error: libelf.h: No such file or directory
compilation terminated.
../Makefile.common:187: recipe for target 'obj-x86_64-redhat-linux/sim_elf.o' failed
make[2]: *** [obj-x86_64-redhat-linux/sim_elf.o] Error 1
make[2]: Leaving directory '/home/nemo/extra/simavr/simavr/simavr'
Makefile:34: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/nemo/extra/simavr/simavr/simavr'
Makefile:15: recipe for target 'build-simavr' failed
make: *** [build-simavr] Error 2

@mali
Copy link
Contributor

mali commented Sep 9, 2016

Searching for "fedora 22 libelf.h" says that the package name is elfutils-libelf-devel

@TestNemo
Copy link
Author

Hi Navet,
You are right, it is fine after install elfutils-libelf-devel on fedora 22.

@Grazfather
Copy link

sudo apt install libelf-dev on ubuntu

@ZionChen01
Copy link

What is the name of this package in SUSE15?

@edgar-bonet
Copy link

@ZionChen01: https://pkgs.org/search/?q=libelf
Scroll down to “openSUSE”

@alexander-naumov
Copy link

What is the name of this package in SUSE15?
sudo zypper in libelf-devel

@alexander-naumov
Copy link

@ZionChen01: https://pkgs.org/search/?q=libelf Scroll down to “openSUSE”

well, openSUSE != SLES ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants