LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-14-2003, 03:26 PM   #1
ziegen
Member
 
Registered: May 2003
Posts: 32

Rep: Reputation: 15
Lightbulb 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?
 
Old 05-14-2003, 03:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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...
 
Old 05-15-2003, 01:22 AM   #3
ziegen
Member
 
Registered: May 2003
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 05-15-2003, 02:00 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
# 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
 
Old 05-15-2003, 03:52 AM   #5
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
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
 
Old 05-15-2003, 11:37 AM   #6
ziegen
Member
 
Registered: May 2003
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 05-15-2003, 11:42 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
Old 05-15-2003, 07:19 PM   #8
davecs
Member
 
Registered: Feb 2003
Location: Dagenham, Essex, Britain
Distribution: PCLinuxOS
Posts: 485

Rep: Reputation: 31
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
 
Old 05-15-2003, 08:38 PM   #9
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
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
 
Old 05-16-2003, 06:06 PM   #10
ziegen
Member
 
Registered: May 2003
Posts: 32

Original Poster
Rep: Reputation: 15
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?
 
Old 09-20-2003, 06:30 AM   #11
Murasame
LQ Newbie
 
Registered: Sep 2003
Location: France
Posts: 4

Rep: Reputation: 0
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...
 
Old 09-20-2003, 06:36 AM   #12
Murasame
LQ Newbie
 
Registered: Sep 2003
Location: France
Posts: 4

Rep: Reputation: 0
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???


but he IS intalled

please help me

Last edited by Murasame; 09-20-2003 at 06:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake cannot find my gcc cajunaggie Linux - Newbie 2 09-30-2004 08:32 AM
Can't find GCC on Mandrake 9.1 lordshipmayhem Mandriva 46 04-03-2004 02:56 AM
ctype_tolower ctype_tupper not find when building GCC 3.2 on mandrake 9.1 with LFS4.1 toon Linux From Scratch 2 10-07-2003 01:39 PM
Still cant find and use gcc linuxlah Linux - Software 3 06-06-2002 01:14 AM
Cant find GCC manzoor Programming 3 10-12-2001 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration