LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2013, 08:23 AM   #1
Jaitheradevi
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
gcc:command not found


Getting the statement "gcc:command not found" when i try to execute c program in fedore(I am using fedora in Virtual Box)
 
Old 04-23-2013, 08:24 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,061

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Code:
sudo yum install gcc
 
1 members found this post helpful.
Old 04-23-2013, 08:44 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,302

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
Welcome to LQ.

"How to get a usable gcc" : 1) su <Enter password>
2) yum install gcc-c++
 
1 members found this post helpful.
Old 04-23-2013, 08:48 AM   #4
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
Have you tried g++?
 
Old 04-23-2013, 08:50 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,061

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by Nbiser View Post
Have you tried g++?
isnt g++ used to compile c++ code ?
 
Old 04-23-2013, 09:13 AM   #6
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
Quote:
Originally Posted by schneidz View Post
isnt g++ used to compile c++ code ?
I think that g++ and gcc can be used for both c++ &c. I have use gcc on c++ code before, any way.

I see that you're from Boston, how was your area during the man hunt?

Last edited by Nbiser; 04-23-2013 at 09:14 AM.
 
Old 04-24-2013, 03:10 PM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,061

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
i actually moved some time ago but i was on edge trying to get in touch with relatives. one of my cousins works in a hospital near the bomb site and the whole hospital was on high alert hoping that medical facilities were not targeted (as is the case of many ied attacks during the iraq/afganistan war).
 
  


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
gcc-4.5.2 - Pass 1 error -gcc command not found ?? adi_30stm Linux From Scratch 20 11-17-2011 12:23 PM
no gcc command found aliasgar Linux - Newbie 2 10-20-2011 08:22 AM
gcc: command not found tds2000_us Fedora 1 08-03-2006 08:02 AM
gcc: Command not found Lastomega Linux - Newbie 12 03-31-2006 10:28 PM


All times are GMT -5. The time now is 04:44 AM.

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