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?
|
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...
|
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 |
# 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 |
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 |
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 |
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. |
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 |
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 - |
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?
|
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: |
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. |