Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I install g++ or pentium builder packages? Do I need to download those?

Because when I try to compile the program and with this statement:

g++ -Wall -W -Werror main.cpp -o HelloWorldCPP`

This is showing that it needs packages, i.e. g++ and pentium builder, so what should I do?

share|improve this question

Just run

sudo apt-get install build-essential

in the terminal to install all common packages required for compiling native C/C++ software. This is a metapackage, installing several actual packages you will need (including gcc/g++).

Alternatively, you can install this by clicking this link to install via software centre: build-essential Install build-essential

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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