LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I have ubuntu 10.10. It has GCC installed but no G++. Where do I get A G++ binary (https://www.linuxquestions.org/questions/linux-newbie-8/i-have-ubuntu-10-10-it-has-gcc-installed-but-no-g-where-do-i-get-a-g-binary-868037/)

DenzelHenderson 03-11-2011 07:18 PM

I have ubuntu 10.10. It has GCC installed but no G++. Where do I get A G++ binary
 
I have Kubuntu 10.10. It has GCC installed, but no G++. Where do I get G++ and how do I install it? Do I need Synaptic or Aptitude package managers? Which is best?

MS3FGX 03-11-2011 07:46 PM

You would simply install the g++ package, which is already going to be in the repository. As for the package manager, Synaptic and Aptitude are simply different tools to accomplish the same goal, so it doesn't matter which you use. Just use whatever you are most comfortable with (hazarding a guess, probably Synaptic).

You could just as easily install the package directly with apt-get, like so:

Code:

sudo apt-get install g++

Brocifer 03-11-2011 09:02 PM

Quote:

Originally Posted by DenzelHenderson (Post 4287587)
I have Kubuntu 10.10. It has GCC installed, but no G++. Where do I get G++ and how do I install it? Do I need Synaptic or Aptitude package managers? Which is best?

Synaptic is a meh gui replacement for apt.

Here's a couple of apt essentials:

To update your local index and/or check for updates to installed packages
Code:

apt-get update
To search the repos for a particular package
Code:

apt-cache search <what you're looking for>
combine it with grep to refine results.

After you've searched the repos and found a package you need
Code:

apt-get install <package you want to install>
I think you can also use apt-get remove to uninstall, it's been awhile since I messed around in Debian or Ubuntu. At any rate, just man apt and you should be off to the races. Good luck, hope this helped a bit.


All times are GMT -5. The time now is 11:51 PM.