- Open terminal.
- Type command to install gcc or g++ complier:
$ sudo apt-get install build-essential
- This will install the necessary C/C++ development libraries for your Ubuntu to create C/C++ programs. To check gcc version type this command:
$ gcc –version or gcc –v