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'm using Ubuntu 12.04.03 LTS. I installed gcc 4.6.1 from tar.gz , but when I check version with gcc --version the output version is gcc 4.6.3. Is there any way to make the version to become 4.6.1?

Thanks :)

share|improve this question
Could you provide the exact steps that you used to compile GCC, as well as the source of the source (pun completely intended)? – InkBlend Dec 19 '13 at 18:30
I do it exactly like this site with addition like installing gcc-multilib g++-multilib. Then I added export LIBRARY_PATH=/usr/lib/i386-linux-gnu/ export C_INCLUDE_PATH=/usr/include/i386-linux-gnu export CPLUS_INCLUDE_PATH=/usr/include/i386-linux-gnu in .bashrc. I added it because of some error. – micmec Dec 19 '13 at 19:17

It could have been a mismarked download try this one:

share|improve this answer
After that try gcc --version if you still get the wrong version it could be an error with there release. Is there a specific reason you need 4.6.1? – Kaleb M. Dec 19 '13 at 18:25
This is, generally, a bad idea. If you want to download anything that you are going to be running on your computer (or, in this case, compiling and then running), then you should always use the official sources first, no matter how trustworthy the site may be. In this case, then that source is the "Releases" page on the GCC homepage. Also, check out the WOT scorecard for that particular site.... – InkBlend Dec 19 '13 at 18:29
@KalebM. Okay I'll try it. The reason I need 4.6.1 is because my miniPC uses gcc 4.6.1 and if I use another version in my laptop, there will be possibilities of compilation error. If I install newest gcc on my miniPC, it will make its performance slower. (That's what my senior said actually) – micmec Dec 19 '13 at 18:46
@InkBlend My first tar.gz was downloaded from that site before – micmec Dec 19 '13 at 18:47
@micmec, which site? The official GCC page, or this link that Kaleb M. posted? – InkBlend Dec 19 '13 at 21:36

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.