Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd January 2006, 09:35 PM
snowbird91 Offline
Registered User
 
Join Date: Jan 2006
Posts: 2
bash:cc:command not found

hey,
i am new to linux. i have installed FC4 on my laptop and when i try to run a simple c program it shows that the cc or gcc compiler is not found.

bash:cc:command not found.

Dosent fedora core ship with a c compiler or do i need to explicitly set the path.
Reply With Quote
  #2  
Old 3rd January 2006, 09:52 PM
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176
what is the output of this command

Code:
 rpm -qa | grep gcc
Do you have these packages?
Quote:
[jim@notebook ~]$ rpm -qa | grep gcc
gcc-4.0.2-8.fc4
gcc-gfortran-4.0.2-8.fc4
libgcc-4.0.2-8.fc4
gcc-java-4.0.2-8.fc4
gcc-c++-4.0.2-8.fc4
[jim@notebook ~]$
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #3  
Old 3rd January 2006, 10:46 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,076
Yes, fedora ships with the GCC compiler suite, but perhaps you didn't install it on your system. Use the command:
Code:
yum groupinstall 'Development Tools'
Reply With Quote
  #4  
Old 4th January 2006, 06:53 PM
CrystalCowboy's Avatar
CrystalCowboy Offline
Registered User
 
Join Date: Sep 2004
Posts: 536
I'm guessing the compiler is not in your path. Your "execution path" is a list of directories which is searched for executables when you attempt to enter a command.

What shell are you using, tcsh or bash? To find out, do:
echo $SHELL
or:
grep user_name /etc/passwd

For tcsh, do the following:
echo $PATH
The output will be a list of directories. If /usr/bin is not in your 'execution path', it will not be found. You could fix it by putting a line like this in your shell startup config file (.tcshrc or .cshrc):
set path = ($path /usr/bin

You can do the equivalent things in bash, but the specific syntax is different, so I'll leave that to someone more familiar with bash.


Oh, to find out if you have the gcc compiler,
ls -l /usr/bin/gcc
__________________
Explore the Core!
Reply With Quote
Reply

Tags
bashcccommand

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: make: command not found gregma Installation and Live Media 7 9th January 2008 11:08 AM
bash: command not found manin Using Fedora 2 30th October 2007 12:58 PM
bash: rmmod: command not found Stlgera Using Fedora 3 10th December 2006 08:34 PM
BASH: Command not found evolotion Using Fedora 8 26th January 2006 03:07 PM
bash: ifconfig: command not found lukehounsome Servers & Networking 7 30th January 2005 12:23 PM


Current GMT-time: 23:39 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat