Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am trying to compile PHP5, on Linux Fedora 3, and get this message:
Checking whether the C compiler (gcc ) works... no# ./configure --with-mysqli=/usr/src/php-5.0.3/ext/ --with-gd
loading cache ./config.cache
checking host 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.
# rpm -qa | grep gcc gcc-java-3.4.2-6.fc3
gcc-g77-3.4.2-6.fc3
libgcc-3.4.2-6.fc3
gcc-c++-3.4.2-6.fc3
gcc-3.4.2-6.fc3
# which gcc
/usr/bin/gccDoes anyone know what this means, or how to correct it?
Thanks\

Still not worked it out, but it looks as though the compiler doesn't work. When I ran the above configure command it produced the following log file:
Contents of config.log:
#> cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.configure:1631: checking host system type
configure:1719: checking for gcc
configure:1832: checking whether the C compiler (cc ) works
configure:1848: cc -o conftest conftest.c 1>&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:#line 1843 "configure"
#include "confdefs.h"main(){return(0);}
I did some further tests on the C Compiler and got the following results:
First I created a c file as shown:
#> cat x.c
main()
{
printf("Hello World!\n");
}Then I tried to compile it:
#> cc x.c
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
#> gcc x.c
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit statusThis shows the c compiler doesn't work, but I am still stuck.

I managed to download some RPMs for this as follows which got the C compiler to work. I don't know which one did this exactly:
glibc-*
libc-*This meant I could compile my test C program, but still have more errors, but it has progressed a lot.
I will post again for the new problems.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |