LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GCC installed but not working . (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-installed-but-not-working-392050/)

puttyman 12-12-2005 04:13 PM

GCC installed but not working .
 
When i do:
# cat /proc/version

I get:
Linux version 2.4.20-021stab028.3.777-smp (st@current.eng.sw.ru) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #1 SMP Wed Feb 2 21:32:05 MSK 2005

I try to install apache 2.0 getting :
Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 0.9.7
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr

AdaHacker 12-12-2005 04:22 PM

The contents of /proc/version has nothing to do with whether GCC is installed. It just tells you what version was used to build the running kernel. Try "which gcc" or "locate gcc" instead.

Tinkster 12-12-2005 04:25 PM

rpm -qi gcc

What do you get?


Cheers,
Tink

puttyman 12-12-2005 11:15 PM

# rpm -qi gcc:

package gcc is not installed

#which gcc:

/usr/bin/which: no gcc in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/
usr/bin:/usr/X11R6/bin:/root/bin)

locate gcc:
/lib/libgcc_s-3.2.3-20040701.so.1
/lib/libgcc_s.so.1
/usr/sbin/libgcc_post_upgrade
/usr/lib/gcc-lib

I guess its not installed , any1 can help how to install gcc plz .

Tinkster 12-13-2005 01:59 AM

Ummm ... use your RedHat package installation tool and install it?


Cheers,
Tink


All times are GMT -5. The time now is 12:29 PM.