Thursday, November 11, 2010

 

error: gelf.h: No such file or directory

Q: New system, first build, hitting a series of elf and ssl compile errors:

elem_stage_get_digest.c:36:18: error: gelf.h: No such file or directory
elem_stage_get_digest.c:37:20: error: libelf.h: No such file or directory
elem_stage_get_digest.c:39:25: error: openssl/evp.h: No such file or directory
make[5]: *** [obj/native-linux-x86/elem_stage_get_digest.o] Error 1


A: You need a few more packages. Become root.
For the elf errors,

$ yum install elfutils
$ yum install elfutils-libelf-devel

to verify:

$ ll /usr/include grep elf

You should see the elf ones now.

For the ssl package:

$ yum install openssl-devel-0.9.8e (can try g also)

to verify:

$ ll /usr/include grep ssl

You should now see openssl dir.

Labels: ,


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?

free web hit counter
free invisible web counter