Page 1 of 1

Problem with php installation

Posted: Thu Jul 27, 2006 3:24 am
by songwind
I tried to install PHP 5.1 in Red Hat Linux, when I did the following:

Code: Select all

./configure --with-mysql
I got this message:

Code: Select all

checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
I think it may has gcc installed already, when I do "locate gcc", it showed me the following:

Code: Select all

/usr/libexec/gcc
/usr/libexec/gcc/i386-redhat-linux
/usr/libexec/gcc/i386-redhat-linux/4.0.1
/usr/libexec/gcc/i386-redhat-linux/4.0.1/cc1
/usr/sbin/libgcc_post_upgrade
/usr/share/ghostscript/Resource/ac14/CMap/HKgccs-B5-H
/usr/share/ghostscript/Resource/ac14/CMap/HKgccs-B5-V
/usr/share/ghostscript/Resource/CMap/HKgccs-B5-H
/usr/share/ghostscript/Resource/CMap/HKgccs-B5-V
/usr/share/locale/de/LC_MESSAGES/msgcc
/usr/share/locale/es/LC_MESSAGES/msgcc
/usr/share/locale/it/LC_MESSAGES/msgcc
/usr/share/locale/fr/LC_MESSAGES/msgcc
/usr/share/locale/C/LC_MESSAGES/msgcc
/usr/share/locale/pt/LC_MESSAGES/msgcc
/usr/share/doc/libgcc-4.0.1
/usr/share/doc/libgcc-4.0.1/COPYING.LIB
/usr/lib/gcc-lib
/var/cache/yum/updates/packages/libgcc-4.0.1-4.fc4.i386.rpm
/var/cache/yum/updates/headers/libgcc-4.0.1-4.fc4.i386.hdr
/lib/libgcc_s.so.1
/lib/libgcc_s-4.0.1-20050727.so.1
Does it mean the system has gcc installed already? Sorry, I don't know where to look,
how can I fix this problem?
Help, please..
:?

Posted: Thu Jul 27, 2006 10:11 pm
by neophyte
What Red Hat Linux are your running? If it's not finding GCC it may be a version issue...

Posted: Thu Jul 27, 2006 10:12 pm
by neophyte
One other thing, if you have tried a config already sometimes running a make clean helps.

Posted: Sun Jul 30, 2006 8:03 pm
by songwind
Thanks for replying.

When I used cat /proc/version, I found out the linux version is Red Hat 4.0.1-5, is the problem caused by this version?