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

My computer has Ubuntu 11.10 32-bit OS. I downloaded gcc4.4.6 core package (tar file), unzipped it and tried the following:

sudo make install

which gave me the following error:

vidhya@vidhya-Reserved:~/Desktop/gcc-4.4.6$ sudo make install
make[1]: Entering directory `/home/vidhya/Desktop/gcc-4.4.6'
/bin/bash ./mkinstalldirs /usr/local /usr/local
/bin/bash: line 3: cd: host-i686-pc-linux-gnu/fixincludes: No such file or directory
make[1]: *** [install-fixincludes] Error 1
make[1]: Leaving directory `/home/vidhya/Desktop/gcc-4.4.6'
make: *** [install] Error 2

Could anyone please help me install any gcc 4.X version?

share|improve this question
up vote 4 down vote accepted

To install the latest version of gcc-4:4.6.1 through Official repositories just run

sudo apt-get install gcc-4.6 cpp-4.6 gcc-4.6 gcc-4.6-base

Or installing through Ubuntu software center

For the mentioned version gcc 4.4.6 is already available through Oneric official repositories.

Through terminal just run

sudo apt-get install gcc-4.4 cpp-4.4 gcc-4.4 gcc-4.4-base

Or install it through Ubuntu Software center. But the above Latest version is always advisable.

You don't have to use the source .tar package for installing , it is core library package and hence recommended to install it via above official way.

share|improve this answer
thank you! It worked. I want to install any gcc version from source package(tar file) because i want to edit the source code and recompile it. Is there any other way to modify the source code and recompile it? If so i will be happy to hear from u.... – vidhya Aug 1 '12 at 13:34
@vidhya- Glad that it helped .If the above solutions worked for for you , Do consider Marking it as Answer from the Right tick mark left to answer.You should probably try asking modification question as Different question , explaining exactly what you want or need because it also helps other out here and also gets better answers. – atenz Aug 1 '12 at 13:49

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.