LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-18-2005, 09:12 PM   #1
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Rep: Reputation: 15
where is g++


I recently installed Fedora 4. Being a complete newb, I pretty much let the installer have its way. Then I found that it didn't install gcc, so after looking around for a while, I tried "yum install gcc". That seemed to work fine, so I thought I was in good shape.

But now I try to compile things and am getting this error: "g++: command not found". I thought g++ was part of gcc and would be installed along with the rest of it.

What's the best (easiest?) way to get a proper full gcc install on this box?
 
Old 07-18-2005, 09:41 PM   #2
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
What does "which g++" say?
 
Old 07-18-2005, 09:53 PM   #3
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
/usr/bin/which: no g++ in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/root/bin)
 
Old 07-18-2005, 09:57 PM   #4
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
How about "whereis g++" and "find / -name g++"?
 
Old 07-18-2005, 10:05 PM   #5
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
> whereis g++

g++:


> find / -name g++

find: WARNING: Hard link count is wrong for /proc: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
 
Old 07-18-2005, 10:15 PM   #6
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
I looked at my own package list and I have two separate packages, "gcc" and "gcc-g++". What if you try "yum install g++" or "yum install gcc-g++"?
 
Old 07-18-2005, 10:47 PM   #7
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
> I looked at my own package list and I have two separate packages, "gcc" and "gcc-g++".
> What if you try "yum install g++" or "yum install gcc-g++"?

"yum install g++" does not work. Neither does "yum install gcc-g++". No match found for either one.

-------------------------------------------------------------

I uninstalled gcc and installed the one off the distro CD. Still no g++. WTF???
 
Old 07-18-2005, 11:59 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Try "yum list *g++*" -- it should be there somewhere. You do need to install it separately from gcc.
 
Old 07-19-2005, 12:13 AM   #9
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
> Try "yum list *g++*" -- it should be there somewhere.

I don't see it.

------------------------------------------

> You do need to install it separately from gcc.

If so, you'd think yum could find it, but it doesn't. I have the redhat and freshrpms repositories in there.

------------------------------------------

Here's the results of "yum list "g++"" as well as "yum list g++" (just in case).

[root@localhost ~]# yum list "g++"
Setting up repositories
core 100% |=========================| 951 B 00:00
http://mirror.netglobalis.net/pub/fe...ta/repomd.xml: [Errno 4] IOError: HTTP Error 404: Date: Tue, 19 Jul 2005 05:03:13 GMT
Server:
Content-Length: 315
Connection: close
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
updates-released 100% |=========================| 951 B 00:00
kde-redhat-stable-all 100% |=========================| 951 B 00:00
kde-redhat-stable 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
freshrpms 100% |=========================| 951 B 00:00
Reading repository metadata in from local files


[root@localhost ~]# yum list g++
Setting up repositories
core 100% |=========================| 951 B 00:00
updates-released 100% |=========================| 951 B 00:00
kde-redhat-stable-all 100% |=========================| 951 B 00:00
kde-redhat-stable 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
freshrpms 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
[root@localhost ~]#
 
Old 07-19-2005, 01:56 AM   #10
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
I believe I've found the answer in this thread: http://www.fedoraforum.org/forum/showthread.php?t=45673

This message in particular was the clue:
"Yes, confused me for a while too when I was trying to download the g++ compiler through yum, I found out that g++ comes under gcc-c++ in the list of available packages."

So I did a "yum install gcc-c++" and now I have a g++. Now all I have to do is find out why I'm getting all these errors when compiling kismet. Sigh... Nothin's ever easy... Anyone know of a Fedora 4 package for kismet?
 
  


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




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