LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-09-2003, 02:31 PM   #1
jcovey
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
no G++ command


I'm using Red Hat 9 for my CS classes and in lab we are using g++ to compile our programs for C++. I just put RH 9 onto my computer and when I try to compile with g++ it doesn't work and says 'g++ command not found.' Is there anyway to put it on there so I can compile?
 
Old 10-09-2003, 04:19 PM   #2
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
you need to install the GCC compiler. It has the c and C++ compilers in it. (the g++ is the name for the C++ compiler in the GCC package).

Alex

Last edited by webtoe; 10-09-2003 at 04:20 PM.
 
Old 10-09-2003, 06:59 PM   #3
jcovey
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for helping. I got it to work now.
 
Old 10-10-2003, 06:33 AM   #4
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
It could also be a missing symlink somewhere. There should be a command to check for a GCC .rpm file, and you can search for its binaries by something like:

$ find / | grep "gcc"

And if that delivers nothing, try installing it!
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 11:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 01:24 AM


All times are GMT -5. The time now is 12:06 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