10 Sep 2008
GCC on Ubuntu
A friend recently ran into a problem while trying to get GCC working on Ubuntu. Ubuntu does not install GCC by default and therefore, to get it working, you have to put back your installation CD and type the following on the terminal:
sudo apt-get install build-essential
In most cases that should do the trick, but sometimes (like in my friend’s case), one might get an error stating “build-essential could not be found”.
I am not really sure why this occurs, but after some googling, I found a solution. To fix the problem, run the Synaptic Package Manager and press the refresh button. Then run the above command from the terminal again. It should work.
Just wanted to document this, so that it might be of use to someone.