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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-19-2008, 11:09 AM
|
#1
|
|
Member
Registered: Feb 2008
Posts: 45
Rep:
|
How to install G++ compiler
I've just installed Fedora core 8 and I used the add/remove software feature to install GCC. Apparently, g++ is bundled into the gcc program. When I type in..
..I just get a bash command error saying "command not found". I'm kind of unsure as to where to go from here. If I've installed gcc, shouldn't g++ be there too?
Thanks for any help.
|
|
|
|
02-19-2008, 11:30 AM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
...it may be, I'm not too sure how Fedora bundles the GNU Compiler Collection (GCC).
(As an aside, keep in mind, the "-o [string]" option just sets the output binary name to [string] instead of "a.out" - you need to supply a third argument: "g++ -o hello_world hello_world.cpp".)
With Debian, the gcc package only installs the C compiler of the GNU Compiler Collection; the g++ package installs the C++ compiler. Check and see if there's a g++ package (or something similar) in the Add/Remove Programs utility (I think it's called "pirut").
|
|
|
|
02-19-2008, 06:52 PM
|
#3
|
|
Member
Registered: Feb 2008
Posts: 45
Original Poster
Rep:
|
I figured it out:
I just needed to type "yum install gcc-c++"
But now I'm confused about what yum is. Does Fedora have multiple package managers?
|
|
|
|
02-19-2008, 06:56 PM
|
#4
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Pirut is a gui version of yum (or frontend - not quite sure which). Both use same mechanics as far as I can tell.
That said, I still prefer yum from the command line
|
|
|
|
02-20-2008, 08:09 AM
|
#5
|
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
I believe Pirut is a front-end to Yum (which is, in turn a front-end to rpm) which is much like in Debian where aptitude, synaptic and apt-get are front-ends to apt, which is a front-end to dpkg.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:37 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|