checking whether the C compiler (gcc ) works... no
Hello all,
Working with a new installation of Slackware 10 and i'm trying to install the newest version of PHP5 RC3. Although, i'm getting the problem when i run the ./configure command that states... checking whether the C compiler (gcc ) works... no Well, i do indeed have gcc installed according to swaret.. Package gcc-3.3.4-i486-1 is already installed! Package gcc-g++-3.3.4-i486-1 is already installed! Package gcc-g77-3.3.4-i486-1 is already installed! Package gcc-gnat-3.3.4-i486-2 is already installed! Package gcc-java-3.3.4-i486-1 is already installed! Package gcc-objc-3.3.4-i486-1 is already installed! I'm trying to figure out how to fix this error. Please don't tell me to search, i've been searching for 5 hours. Please don't tell me to RTFM as i've read so many readme's i'm ready to puke. Thanks |
maybe the includes (i got this problem a lot when i used LFS/Core linux, read the config.log for more info as to why it claimed it doesn't exist (might wanna search it as its probably a few thousand lines long)
|
Quote:
Code:
configure:1631: checking host system type |
go to a command line, and type this into a file named "simple.c":
Code:
#include <stdio.h> What errors are reported? If it's a "command not found" error for gcc, then gcc is not located in the environment's PATH. |
Quote:
-bash: simple.c:1:19:: command not found |
It appears that swaret has fscked up the most basic
files that come with the compiler, you're obviously missing headers (root:/# simple.c:1:19: stdio.h: No such file or directory) and libraries (/ld: crt1.o: No such file: No such file or directory) Cheers, Tink |
Okey dokey... now we're getting somewhere.
gcc works. The problem is, it can't find standard header files. In a nutshell, header files (like stdio.h) provide information on how to use code stored in libraries. Now, from the command line, type: locate stdio.h You may have to run updatedb (as root) to make sure the results locate gives you are up-to-date. If you don't get anything back, then the installation of gcc didn't work so well. Those standard headers are needed for just about every program written. If you do get some results back, check over the list. See if you can find one located at /usr/include. That is the most common place for those headers to be stored, and is the first place gcc will look for them. <edit> You type too quickly Tink ;) </edit> |
Quote:
Cheers, Tink |
God's last name is NOT damn!!!!! :tisk:
|
Quote:
|
do you have glibc installed which is in the l directory. why its not in d i dont know but you need it to compile c progs.
|
If it were that glibc were missing, then the system would be completely shut down. Virtually every program on the system needs access to glibc everytime the program is run.
My money is still on the idea that something somehow either deleted the headers in /usr/include, renamed them, or did something equally sinister to prevent gcc from locating them. |
Quote:
"You shall not misuse the name of the LORD your God, for the LORD will not hold anyone guiltless who misuses his name." ~ Exodus 20:7 |
Quote:
|
Quote:
# mv Transition /hell |
All times are GMT -5. The time now is 03:26 PM. |