LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-26-2008, 11:12 PM   #1
dingshuai1985
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++?

Thanks!
 
Old 05-26-2008, 11:30 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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, 11:51 PM   #3
dingshuai1985
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?
Thanks
 
Old 05-27-2008, 12:15 AM   #4
LinuxManMikeC
Member
 
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.
 
  


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


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