g++ is missing

Asked by Harry Gatley

I was installing the Intel Fortran Compiler and got the error message g++ is missing. What is g++ and how do I get it?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu build-essential Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eliah Kagan (degeneracypressure) said :
#1

g++ is the GCC C++ compiler. GCC is the GNU Compiler Collection. See http://gcc.gnu.org/ for more information, if you're interested.

The best way to get g++ is to install the package called "build-essential". You can do this in the Ubuntu Software Center or the Synaptic Package Manager. You can also do it by running the command

sudo apt-get update; sudo apt-get install build-essential

in the Terminal. (When you run that command, you may be prompted for your password. As you enter it, you won't see any placeholder characters, like *. That's OK, just type in the command and press enter.)

Please note that I have just specified three ways of installing that package, but you should choose just one.

Revision history for this message
Harry Gatley (harrygatley) said :
#2

The pre-requisites for g++ seem to also be necessary shouldn't I install
them first like C90 and GNAT?

On Fri, Feb 18, 2011 at 2:03 PM, Eliah Kagan <
<email address hidden>> wrote:

> Your question #145924 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/145924
>
> Status: Open => Answered
>
> Eliah Kagan proposed the following answer:
> g++ is the GCC C++ compiler. GCC is the GNU Compiler Collection. See
> http://gcc.gnu.org/ for more information, if you're interested.
>
> The best way to get g++ is to install the package called "build-
> essential". You can do this in the Ubuntu Software Center or the
> Synaptic Package Manager. You can also do it by running the command
>
> sudo apt-get update; sudo apt-get install build-essential
>
> in the Terminal. (When you run that command, you may be prompted for
> your password. As you enter it, you won't see any placeholder
> characters, like *. That's OK, just type in the command and press
> enter.)
>
> Please note that I have just specified three ways of installing that
> package, but you should choose just one.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/145924/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/145924
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--

Harry John Gatley, Chem.E., P.E., P.Eng.
President
UtechMech Company

website http://utechmech.com

(801) 272-2411

Revision history for this message
marcus aurelius (adbiz) said :
#3

it doesn't matter in which order you install the programs. if a prerequisite is missing, the program just won't run and will issue an error message that a required program is missing.

Revision history for this message
Harry Gatley (harrygatley) said :
#4

Many Thanks!

On Fri, Feb 18, 2011 at 3:52 PM, marcus aurelius <
<email address hidden>> wrote:

> Your question #145924 on build-essential in ubuntu changed:
>
> https://answers.launchpad.net/ubuntu/+source/build-essential/+question/145924
>
> Status: Open => Answered
>
> marcus aurelius proposed the following answer:
> it doesn't matter in which order you install the programs. if a
> prerequisite is missing, the program just won't run and will issue an
> error message that a required program is missing.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/build-essential/+question/145924/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
>
> https://answers.launchpad.net/ubuntu/+source/build-essential/+question/145924
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--

Harry John Gatley, Chem.E., P.E., P.Eng.
President
UtechMech Company

website http://utechmech.com

(801) 272-2411

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#5

Also, installing build-essential installs all the necessary packages for a fully and properly functional g++ installation (as well as installing g++ itself, and also some other stuff not related to or needed for g++).

Your latest post has reopened the question. If you need further assistance, please describe the problem (if it's that you're getting the same error even after installing build-essential, say that). On the other hand, if you consider your questions satisfactorily answered and your problem resolved, please mark this question as Solved. (You can do that at https://answers.launchpad.net/ubuntu/+source/build-essential/+question/145924.)

Can you help with this problem?

Provide an answer of your own, or ask Harry Gatley for more information if necessary.

To post a message you must log in.