GCC issue: C compiler cannot create executables

Chris G cl at isbd.net
Tue May 20 11:01:51 UTC 2008

On Tue, May 20, 2008 at 03:48:02PM +0500, Rashid Aslam wrote:
> Hi,
> I am a newbie to Linux and Ubuntu (Gutsy Gibbon) is the first
> distribution i´m using.
> I am in a lot of trouble here. I want to compile PHP with Postres Plus
> (by enterpriseDB) but I am getting error by GCC. This is what I get
> after running the command:
> sudo ./configure --with-pgsql=/opt/PostgresPlus/8.3AS/dbserver/lib
> loading cache ./config.cache
> checking for Cygwin environment... no
> checking for mingw32 environment... no
> checking for egrep... grep -E
> checking for a sed that does not truncate output... /bin/sed
> checking host system type... i686-pc-linux-gnulibc1
> checking target system type... i686-pc-linux-gnulibc1
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... no
> configure: error: installation or configuration problem: C compiler
> cannot create executables.
> Has anyone done this before... Please help! I am in trouble here.
First thing to check is whether you actually have gcc installed, I
think the ./configure message about "checking for gcc... gcc"
means it has just defaulted to using gcc and then the next message is
saying that gcc doesn't work which probably simply means it's not there.

    sudo apt-get install gcc

Chris Green

More information about the ubuntu-users mailing list