Configuring MySQL problem

Hi,

Trying to setup mediawiki on a system but having problems configuring mysql:

CC=/usr/bin ./configure
checking build system type... powerpc-ibm-aix6.1.0.0
checking host system type... powerpc-ibm-aix6.1.0.0
checking target system type... powerpc-ibm-aix6.1.0.0
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking "character sets"... default: latin1, collation: latin1_swedish_ci; compiled in: latin1 latin1 utf8
checking whether to compile national Unicode collations... yes
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) nawk
checking for gcc... /usr/bin
checking for C compiler default output file name...
configure: error: in `/home/ifstech/varune/download/mysql-5.0.92':
configure: error: C compiler cannot create executables
See `config.log' for more details.

I have attached the config.log as well.

I've been trying for a little while and I can't seem to get it going

additionally:

which gcc
/usr/bin/gcc
which g++
/usr/bin/g++

Please post the content of config.log.

Hi,
Thanks for your quick response. it is attached as config.txt

OK,
this seems strange:

checking for gcc... /usr/bin

and:

configure:4319: checking for gcc
configure:4346: result: /usr/bin
configure:4578: checking for C compiler version
configure:4586: /usr/bin --version >&5
./configure[4588]: /usr/bin: cannot execute
configure:4590: $? = 126
configure:4597: /usr/bin -v >&5
./configure[4599]: /usr/bin: cannot execute
configure:4601: $? = 126
configure:4608: /usr/bin -V >&5
./configure[4610]: /usr/bin: cannot execute
configure:4612: $? = 126
configure:4635: checking for C compiler default output file name
configure:4657: /usr/bin      conftest.c  >&5
./configure[4659]: /usr/bin: cannot execute
configure:4661: $? = 126

The compiler name is missing ...
Do you have any CC empty variable in the environment?

set | grep CC

there is no output when I run that command.

What happens when you execute:

export CC=/usr/bin/gcc 
./configure

Just tried and still getting the same error.

OK,
could you please post the entire output from set and env:

set
env

Thanks but I got it working... I re-installed the RPM's and magically started working =S odd issue.

Glad it worked and thank you for sharing the solution!