View Full Version : Install / run multiple versions of gcc on the same system

January 30th, 2013, 11:24 PM
Hi everyone. I have one more question. How can I install/run multiple gcc on the same system?

My problem is: I can't compile one file, but I don't know why with the older version of the gcc. It gives this error:

/usr/bin/gcc-4.6: not found (hardened-cc could not find target)

One user said that he just compiled that file I posted with gcc 4.6.2 and he doen't understand why I can't compile...

So in terminal i just typed:

apt-get install hardening-wrapper

After this in the /usr/bin folder appeared the gcc-4.6, but when I want to compile again, it gives the same error message:

/usr/bin/gcc-4.6: not found (hardened-cc could not find target)

I don't know what could be the problem. I am using fresh installed Ubuntu 12.10

So if anyone can help me, I would appreciate it :)