Error compiler cannot create executables

recently a friend of mine asked me to install curl and enable it on php configuration in his Virtual Dedicated Server with debian linux as operating system
So i transferred curl source from https://curl.haxx.se/ , extract it, and as usual, i run ./configure
but an error message appeared, stating : configure: error: C compiler cannot create executables"
please can someone help?

Error:
configure: error: C compiler cannot create executables
