LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 09-27-2004, 10:06 AM   #1
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Rep: Reputation: 15
Question Error Message gcc: Command not found


There I am: freshly installed FC2.
Now I want to compile some program and I get an error-message that says:

"gcc: Command not found".

To find out what is wrong I enter "slocate gcc". I see lots of gcc-files and -directories:

/lib/libgcc_s-3.3.3-20040413.so.1
/lib/libgcc_s.so.1
/lib/modules/2.6.5-1.358/build/include/linux/compiler-gcc+.h
/lib/modules/2.6.5-1.358/build/include/linux/compiler-gcc.h
/lib/modules/2.6.5-1.358/build/include/linux/compiler-gcc2.h
/lib/modules/2.6.5-1.358/build/include/linux/compiler-gcc3.h
/lib/modules/2.6.5-1.358/build/include/acpi/platform/acgcc.h
/lib/modules/2.6.5-1.358/build/scripts/gcc-version.sh
/lib/modules/2.6.8-1.521/build/include/linux/compiler-gcc+.h
/lib/modules/2.6.8-1.521/build/include/linux/compiler-gcc.h
/lib/modules/2.6.8-1.521/build/include/linux/compiler-gcc2.h
/lib/modules/2.6.8-1.521/build/include/linux/compiler-gcc3.h
/lib/modules/2.6.8-1.521/build/include/acpi/platform/acgcc.h
/lib/modules/2.6.8-1.521/build/scripts/gcc-version.sh
/usr/share/ghostscript/Resource/ac14/CMap/HKgccs-B5-H
/usr/share/ghostscript/Resource/ac14/CMap/HKgccs-B5-V
/usr/share/ghostscript/Resource/CMap/HKgccs-B5-H
/usr/share/ghostscript/Resource/CMap/HKgccs-B5-V
/usr/lib/gcc-lib
/usr/lib/gcc-lib/i386-redhat-linux
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/cc1
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3
/usr/lib/gcc-lib/i386-redhat-linux
/usr/lib/gcc-lib
/usr/lib/ooo-1.1/program/libvos3gcc3.so
/usr/lib/ooo-1.1/program/libsalhelper3gcc3.so
/usr/lib/ooo-1.1/program/libcppuhelpergcc3.so.3.1.0
/usr/lib/ooo-1.1/program/libcppuhelpergcc3.so.3
/usr/lib/ooo-1.1/program/libcppuhelper3gcc3.so
/usr/lib/ooo-1.1/program/libi18nregexpgcc3.so
/usr/lib/ooo-1.1/program/libcppuhelpergcc3.so
/usr/lib/ooo-1.1/program/libstlport_gcc.so
/usr/lib/ooo-1.1/program/libucbhelper2gcc3.so
/usr/lib/ooo-1.1/program/libcomphelp3gcc3.so
/usr/lib/ooo-1.1/program/libgcc3_uno.so
/usr/lib/ooo-1.1/program/libsalhelpergcc3.so.3.1.0
/usr/lib/ooo-1.1/program/libi18nutilgcc3.so
/usr/lib/ooo-1.1/program/libsalhelpergcc3.so
/usr/lib/ooo-1.1/program/libsalhelpergcc3.so.3
/usr/sbin/libgcc_post_upgrade
/var/cache/yum/base/headers/gcc34-c++-0-3.4.0-1.i386.hdr
/var/cache/yum/base/headers/gcc34-0-3.4.0-1.i386.hdr
/var/cache/yum/base/headers/gcc-0-3.3.3-7.i386.hdr
/var/cache/yum/base/headers/compat-gcc-objc-0-7.3-2.96.126.i386.hdr
/var/cache/yum/base/headers/gcc-gnat-0-3.3.3-7.i386.hdr
/var/cache/yum/base/headers/gcc-g77-0-3.3.3-7.i386.hdr
/var/cache/yum/base/headers/compat-gcc-0-7.3-2.96.126.i386.hdr
/var/cache/yum/base/headers/gcc-java-0-3.3.3-7.i386.hdr
/var/cache/yum/base/headers/compat-gcc-c++-0-7.3-2.96.126.i386.hdr
/var/cache/yum/base/headers/gcc34-java-0-3.4.0-1.i386.hdr
/var/cache/yum/base/headers/compat-gcc-g77-0-7.3-2.96.126.i386.hdr
/var/cache/yum/base/headers/gcc-objc-0-3.3.3-7.i386.hdr
/var/cache/yum/base/headers/gcc-c++-0-3.3.3-7.i386.hdr
/var/cache/yum/base/headers/compat-gcc-java-0-7.3-2.96.126.i386.hdr

It seems that everything is there, but the program won't compile

What do I miss?

Kind regards,

Schmurff
 
Old 09-27-2004, 10:40 AM   #2
wpyh
Member
 
Registered: Jun 2004
Location: Beijing
Distribution: Slackware 9.1 but FUBAR with packages I compile myself, and OpenBSD (not exactly a distro) on QEMU
Posts: 153

Rep: Reputation: 35
No you don't. From what I can see, you've only got gcc libs installed. I don't use FC (or any other rpm-based distro) but I'm positive you can find a package called "gcc-something-something.rpm" in the CD's.
 
Old 09-27-2004, 12:23 PM   #3
cincindie
Member
 
Registered: Jul 2004
Location: Zinzinnati, OH
Distribution: RH, FC 1-6, F 7-17, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 175

Rep: Reputation: 31
gcc should be in the /bin directory. As wpyh says, you'll find a series of files called gcc34*.rpm in the second and third FC2 installation CDs. Install those or alternatively, go to one of the download mirrors, and install from the latest gcc* rpms.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make fail with: gcc-3.4 command not found andy101 Ubuntu 3 11-27-2005 01:45 AM
makefile gcc command cannot be found Mogul83 Programming 7 05-31-2005 03:11 AM
bash: gcc: command not found sandbag Linux - Software 8 05-05-2005 12:17 PM
VSFTPD make: gcc: Command not found Exutable Linux - Software 4 04-06-2005 02:15 PM
command not found error message dcarlis Linux - Newbie 3 10-21-2004 07:30 PM


All times are GMT -5. The time now is 08:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration