Author Archives: Nan Xiao


About Nan Xiao

Software Engineer / M.Sc

Fix compile error: “fatal error: ‘libelf.h’ file not found”

Recently, when I try to build an open source project, I meet the following compile error:

The solution is installing elfutils-libelf-devel package:


Linux : How to install clang on CentOS 7

The EPEL repository provides clang RPM package. So to install clang on CentOS 7, You need to install EPEL first:

Then you can install “clang”:

After this, you can use clang to compile your program.