Monday, 31 July 2017

How to Install g++ in Linux Mint

We face this issue when you are trying to compile a C/C++ program but it gives the following error:

/bin/sh: 1: g++: not found 

Now, to get your compiler working you need to install these two packages:
- build-essential

You can do so with Software Manager or Synaptic Package Manager.
Or you can do this from terminal with this command:
$  apt update && apt install build-essential g++

This command will update your package cache and if successful it will install build essential g++ in your machine.

No comments:

Post a Comment