Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed gcc as described below.

it installed pretty well, but when I call gcc -v it just shows the former version gcc4.6.3. I do not know where to find the installation so that I can make a link to call it.

tar xzf gcc-4.6.2.tar.gz
cd gcc-4.6.2
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.6.2/configure --prefix=$HOME/gcc-4.6.2 
make install

All were done from my home directory.

share|improve this question
It appears based on your question that you have attempted to install 4.6.2, not 4.8.1 as in your title. Can you confirm? – Elder Geek Jun 18 '14 at 13:17

You can install gcc-4.8 with:

sudo apt-get install gcc-4.8

No difficult compilation methods are needed to be employed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.