"C compiler cannot create executables"

"checking for C compiler default output file name... configure: error: C compiler cannot create executables"

Reasons: miss some packages for gcc

Solutions: $ apt-get install libc6-dev g++ gcc

My platform is Debian. Same to Redhat similar platforms. "installing the kernel-headers and glibc-devel packages with the Red Hat Package Manager"
原文地址:https://www.cnblogs.com/ainima/p/6331471.html