"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"