LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mandrake 9.1 cant find gcc (https://www.linuxquestions.org/questions/linux-software-2/mandrake-9-1-cant-find-gcc-59808/)

ziegen 05-14-2003 02:26 PM

mandrake 9.1 cant find gcc
 
I just installed mandrake 9.1 and I am having problems with gcc. When I try to compile a new program I get, cant find gcc. I have all ready installed it from the software manager. Anyone else have this problem?

acid_kewpie 05-14-2003 02:40 PM

so what happens when you just type "gcc" in a terminal window? also show us what "rpm -qa | grep gcc" says. if a configure script says it's not there, then it isn't...

ziegen 05-15-2003 12:22 AM

ok I checked the system out and ran rpm - qa | grep gcc and came up with this

libgcc1-3.2.2-3mdk
gcc-cpp-3.2.2-3mdk

fancypiper 05-15-2003 01:00 AM

# Mandrake links
Mandrake home page
Mandrake Users website
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc

vous 05-15-2003 02:52 AM

Have you by any chance tried:

1) typing a which:

# which gcc
/usr/bin/gcc

If no location is found for gcc....

2) Have you tried checking your environment to see if it's somewhere in the path?

# env

ziegen 05-15-2003 10:37 AM

This was a fresh install and the first thing I did was download ethereal. I untared it and tried to run a ./configure and came up with an error.

gcc path not found

acid_kewpie 05-15-2003 10:42 AM

clearly the gcc rpm itself is not installed.

ftp://fr2.rpmfind.net/linux/Mandrake...-1mdk.i586.rpm

that same file should be on your distro cd's too, so you shouldn't actually need to download it.

davecs 05-15-2003 06:19 PM

When confronted with the software choices menu on the Mandrake setup did you check "Development"? You may not be a software developer, but you need gcc to install tar.gz files and if you do not check this group it would not be installed.

There is an easy way to see what you have installed. Go into Mandrake Control Centre > Software Management and click the Remove Software icon. Obviously you don't actually go as far as removing anything, but the left-hand list is basically a list of all files you installed on your system via rpm. I did this and typed gcc into the search box and clicked search. The search results were:

gcc-3.2.2-3mdk
gcc-c++-3.2.2-3mdk
gcc-cpp-3.2.2-3mdk

If they are not installed, they won't be listed. If they are you could try removing them, then re-installing them -- and crossing your fingers!

DAVE

fancypiper 05-15-2003 07:38 PM

Try this: Open an x terminal, give the command su -, give root's password and command urpmi gcc

It should look similar to my x terminal
Code:

[phil@uilleann phil]$ su -
Password:
[root@uilleann root]# urpmi gcc


ziegen 05-16-2003 05:06 PM

I cant find it and I think the cd's I got from Mandrake are bad. I go through the whole install and at the end it asks for an update, after I click no it freezes and locks up. I turn the laptop off and power on and Mandrake 9.1 comes up but gcc is not installed. But the software manager sayes it is. rpm -qa |grep gcc has it located libgcc and gcc-c. I think I got some bad cd's, anyone else got the same problem?

Murasame 09-20-2003 05:30 AM

sorry to dig out this topic, but i found it with google, and i have exactly the same problem.

what could i do? i have tried all above solutions...:confused: :scratch:

Murasame 09-20-2003 05:36 AM

maybe i found a little solution.
i tape export CC=gcc

but now i have:

[root@localhost hpijs-1.4.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
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
[root@localhost hpijs-1.4.1]# export CC=gcc
[root@localhost hpijs-1.4.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
[root@localhost hpijs-1.4.1]# whereis gcc
gcc:
[root@localhost hpijs-1.4.1]# which gcc
which: no gcc in (/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin)
[root@localhost hpijs-1.4.1]# CC=gcc
[root@localhost hpijs-1.4.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
[root@localhost hpijs-1.4.1]# gcc
-bash: gcc: command not found
[root@localhost hpijs-1.4.1]# rpm -q gcc
package gcc is not installed
[root@localhost hpijs-1.4.1]#


he tell me gcc not installed???
:confused:

but he IS intalled

please help me :cry:


All times are GMT -5. The time now is 06:56 PM.