To check the right version of the Ubuntu lsb_release -a To check the architecture by issuing uname -m To update and upgrade the installed packages on the system. sudo apt-get update sudo apt-get upgrade To install gcc sudo apt-get install build-essential compile the file(command in the directory where the file is in) tar -vxzf filename.tar.gz clean the file(in a created directory) make clean com..