2

I tried installing gpp in my Ubuntu 12.04, but I can't install it.

It reports,

sudo apt-get install gpp
[sudo] password for akash:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gpp

I tried locating the file gpp by

find / -type f -name gpp

But it says permission denied in all course.

2

3 Answers 3

13

The best way to install all the basic development tools is to do

sudo apt-get install build-essential

3

The package gpp is contained in the universe group of the repository, you need to add it to the software sources either in the graphical tool or editing the /etc/apt/sources.list file. It should contain the line deb http://archive.ubuntu.com/ubuntu/ precise universe.

EDIT: If you want the GNU C++ compiler, the package name is g++, and it's in the main section of the repository.

2

Try this :

sudo apt-get install g++
1
  • You might need to run apt-get update first.
    – Seth
    Apr 3, 2014 at 15:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.