Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

How can I manually install gcc tarball file in Ubuntu 12.04?

share|improve this question

marked as duplicate by Eric Carvalho, Kevin Bowen, Luis Alvarado Aug 7 '13 at 18:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

You can install packages from source with apt-get:

sudo apt-get -y build-dep gcc
apt-get source gcc
cd gcc*
dpkg-buildpackage -rfakeroot
cd ..
sudo dpkg -i gcc*.deb
share|improve this answer

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