Download your favorite Linux distribution at LQ ISO.
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 05-26-2008, 10:12 PM   #1
LQ Newbie
Registered: May 2008
Posts: 4

Rep: Reputation: 0
g++ command not found

Dear all,
I am new to linux and now using SUSE, I have gcc but when I type in g++, it is "command not found". The gcc version is "gcc (GCC) 4.1.2 20070115 (prerelease) (SUSE Linux)".
So what should I do now in order to have g++?

Old 05-26-2008, 10:30 PM   #2
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
You will need to install the g++ package. I don't use SuSE, but you should be able to find it in the software installation tool in YaST.
Old 05-26-2008, 10:51 PM   #3
LQ Newbie
Registered: May 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I search in Yast control center it said can not find g++
Also I download the g++ packet and install it, but still "command not found" when type g++.
If I type whereis g++, it shows g++:

What should I do now?
Old 05-26-2008, 11:15 PM   #4
Registered: Nov 2007
Location: Provo, Utah
Distribution: Debian and Ubuntu
Posts: 74

Rep: Reputation: 15
When you say, "I download the g++ packet and install it", where exactly did you get it and how did you install it? You might have the completely wrong package for your system or installed it wrong, which would be why it still doesn't work. Also, it will definitely be in your package manager. Not a SUSE user myself, but in Fedora it is called gcc-c++. Just look for any packages in Yast that has to do with GCC, its in there somewhere.


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
Shell: command not found / Runs fine with "Run command" badbunny Linux - Newbie 1 01-22-2007 01:21 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
wish command not found marsguy Linux - Software 4 12-06-2004 03:54 AM
command not found jkp Linux - Newbie 3 01-21-2003 02:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:37 PM.

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