configure: error: c compiler cannot create executables

configure: error: c compiler cannot create executables

recently a friend of mine asked me too install curl and enable it on php configuration in his Virtual Dedicated Server with debian linux as operating system

So i transfered curl source from http://curl.haxx.se/ , extract it, and as usual, i run ./configure

but error message is appeared, it says : configure: error: C compiler cannot create executables


configure: error: C compiler cannot create executables

My first though is gcc haven’t installed yet, so i install gcc with apt-get install gcc but still i got the same error message

So this must be because debian (ussualy i used centOS not debian as server OS) need all build binaries to make executable file from ./configure, so i install all build binaries with this command :

apt-get install build-essential

and ./configure command working perfectly


1 Comment »

  1. avatar comment-top

    Can I know where can I get gcc? So that I can also install it. Thanks a lot.  

    comment-bottom

RSS feed for comments on this post. TrackBack URL

Leave a comment