Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-03-2006, 05:24 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 14

Rep: Reputation: 0
gcc problem on suse 10

I isntalled gcc with the command

yast -i gcc

and gcc was installed. However, when I try running the g++ command for C++ compiling, i get a no command found error. Why is gcc, as work but not g++? aren't they all part of the same GNU package?
Old 01-03-2006, 05:38 PM   #2
Registered: Jul 2004
Location: Manchester, England
Distribution: Gentoo
Posts: 211

Rep: Reputation: 30
Not sure about other distros, but in SUSE they're seperate. You'll need to install gcc-c++.
Old 01-03-2006, 08:30 PM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
My experience with SuSE and the Gnu compiler is: each capability is a *module* of the compiler. If you want gcc: install gcc. If you want g++; install g++. Same for Fortran, etc.

The only way to get all the capabilites of the compiler is to install from source (to get most of the capabilities), then add compiler modules which are not part of the basic tar install.
Old 01-04-2006, 12:54 AM   #4
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Originally Posted by UK MAdMaN
Not sure about other distros, but in SUSE they're seperate. You'll need to install gcc-c++.
Its the same on other distros, installing gcc does not necessarily install g++.


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
Problem with new installation of SUSE, gcc & make not found abefroman SUSE / openSUSE 5 01-18-2008 12:36 PM
Suse 9.3 Pro gcc install problem Detriamus SUSE / openSUSE 2 10-09-2005 06:11 PM
Suse 9.3 gcc-g++ Installation Problem limneos Linux - Newbie 4 09-30-2005 06:27 PM
GCC compiling problem C, SuSE 9.1 Bill Chandler Linux - Software 3 11-24-2004 01:30 AM
GCC 3.4.2 on SuSE 9.1 escordeiro Linux - Newbie 10 11-12-2004 04:16 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration