How to install gcc on Ubuntu

To check if you have gcc installed on your Ubuntu type gcc on the terminal. If terminal shows you following error means you don't have gcc installed.
"gcc: fatal error: no input files"
To install gcc, all you need to do is to follow the below commands:
  •  sudo apt-get update
  •  sudo apt-get upgrade
  •  sudo apt-get install build-essential
Once the installation completed for essentials, you can check the installed gcc version by command
  • gcc --version

No comments:

Post a Comment

Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...