1

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

./configure   
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?

1 Answer 1

4

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.

2
  • 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, 2012 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, 2012 at 13:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .