LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 08-22-2005, 06:22 AM   #1
tzotzo
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
G++ not found, but gcc is there... how to enable/install G++?


I am trying to install a C++ application, but it's configure file is complaining that it cannot find a g++/c++ compiler. I can't either!
But gcc is installed.
I have Redhat 9 on this server, or Linux 2.2-24 modified by Redhat.

How do I enable g++/c++? Is there some special gcc command, or do I have to install a whole new gcc?

thx in advance.
 
Old 08-22-2005, 06:56 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to install the gcc-c++ package.
 
Old 08-22-2005, 12:03 PM   #3
tzotzo
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
how do I do that on Redhat.... for other distro;s I've seen update tools, but no clue
as to how do install gcc-c++ for RH9.

thx.
 
Old 08-22-2005, 12:08 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Do you have RH9 CDs? If so, it should be on there. I know there's a thing called "Add/Remove Packages" (or something like that) in RH9, but I can't remember exactly where. You need to find it and then look under "Development Tools". You should be able to select it there and then you'll be prompted for the CD, IIRC.
 
Old 08-22-2005, 12:10 PM   #5
tzotzo
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
thanks. However, this is for a remote hosted server... I have no access to the machine, or the CDs.
I need to find some commmand or RPM package to do this...
 
Old 08-22-2005, 12:18 PM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Oh . Have a look on http://rpmfind.net then.
 
Old 08-23-2005, 11:34 AM   #7
tzotzo
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
found the solution.

In my case, the base GCC package was installed on the server, just not g++/c++. I went to
ftp.redhat.com and working my way down the ftp dir tree, I found the RH9 rpm package for gcc-g++. But first, the package had dependencies on libstdc++ and libstdc++-dev, both of which had RPMs. So first I installed the two lib RPMs, and then I installed the gcc-g++ RPM, and all was well... my C++ program compiled OK.

This path is far easier than trying to build from the gcc-g++ source code package from GNU... MUCH easier.
 
Old 08-23-2005, 11:37 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Good .
 
  


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 vs. g++ -> iostream lib found vs. not found CooManChu Linux - General 1 12-11-2004 10:20 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 03:13 PM
HOW TO enable a #define in .h from gcc line?? newguy21 Programming 1 07-27-2004 03:38 PM
gcc, cc, cl Not Found ? sogtulakk Linux - General 5 06-26-2003 10:00 AM
gcc / cc etc not found ! realos Linux - Software 6 07-25-2002 05:42 AM


All times are GMT -5. The time now is 02:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration