Web Hosting Talk







View Full Version : PHP installation problems


trader7702
06-07-2004, 11:02 AM
I am still a complet noob when it comes to linux I'm afraid. I am attempting fedora now, but php configure is returning some errors for the C compiler. I'm not capable of determining what the problem is.

checking for gcc... gcc
checking whether the C compiler (gcc -O2 -march=i686 -funroll-loops -D_REENTRANT -fPIC ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.


A google search seems to return many sites in other languages, or problems relating to other software, but nothing that has helped me so far.

Anyone have a suggestion?

Thanks,

T7702

linux-tech
06-07-2004, 12:20 PM
Install a compiler
If it can't even find the compiler, of course it's going to bail.

leight
06-07-2004, 12:25 PM
Also (possibly) make sure you have the right permissions to write to the dir you are in, probably a good idea to do the compile as root.

trader7702
06-07-2004, 12:26 PM
It should be installed...

[root@fedora downloads]# which gcc
/usr/bin/gcc


Right?

AS I stated I am still very much learning, so I appologize if I sound like a complete noob. :(

T7702


edit: as you can see, I am root as well. In responce to previous post.

linux-tech
06-07-2004, 12:28 PM
obviously it's instaled, but do you have permission to use it.
Grab a linux book and start reading.

sprintserve
06-07-2004, 12:30 PM
ls -All /usr/bin/gcc

What is the permissions ?

trader7702
06-07-2004, 12:31 PM
[root@fedora downloads]# ls -All /usr/bin/gcc
-rwxr-xr-x 2 root root 80676 Oct 23 2003 /usr/bin/gcc

trader7702
06-07-2004, 01:07 PM
uninstalled and reinstalled gcc-objc and seems to be working now. Dont know what caused it...

Thanks to those that attempted to help.

T7702

Steven
06-07-2004, 06:43 PM
I had this problem, i had to install gcc++ on debian.