LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   g++ command not found (https://www.linuxquestions.org/questions/linux-newbie-8/g-command-not-found-644962/)

dingshuai1985 05-26-2008 10:12 PM

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!

btmiller 05-26-2008 10:30 PM

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.

dingshuai1985 05-26-2008 10:51 PM

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

LinuxManMikeC 05-26-2008 11:15 PM

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.


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