Error compiler cannot create executables

Asked By 0 points N/A Posted on -
qa-featured

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 

                 

SHARE
Best Answer by AileneMellick
Best Answer
Best Answer
Answered By 0 points N/A #122217

Error compiler cannot create executables

qa-featured

Hi,

  • This is not an uncommon error for Linux versions of operating system.  Programming with Linux sometime creates this type of problem. To solve this problem
  • First let me know that are you run a standard RH8 which is properly installed? If you did then the dev. tools aren't installed by default. You need to install dev.tools manually. Or If you install RH8 manually from the installation CD then don’t forget to install dev.tools manually. If you already installed it then reinstall it again.
  • Your other option is if it is not working at all cost, then replace it with install g++.
Answered By 0 points N/A #122219

Error compiler cannot create executables

qa-featured

Hello there.

Based on the output you posted, you already have the gcc compiler installed on your system so we can rule out a missing compiler problem.  One solution that I found for this sort of problem that you are experiencing is to install the "build essentials" for Debian operating system.  It is a package that is necessary to compile all Debian packages.

This is the procedure:

  1. Open a terminal.  You need not be root to do this.
  2. type in "sudo apt-get build-essential" (without the quotes) or use Synaptic to get it from the repositories.

Good luck!  Post back to let us know how it turns out.

Related Questions