@sebastienvg said:
"sudo apt-get install build-essential
I ran the above again and got a confirmation "done"
Then I ran apt-get install gcc or apt-get install g++ and to the error below
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?