Quote:
Originally Posted by samirnext
Code:
gcc: error trying to exec 'cc1': execvp: No such file or directory
|
Quote:
Originally Posted by samirnext
gcc -v return:
Code:
--prefix=/usr --program-suffix=-4.6
|
I think that means when trying to exex 'cc1' gcc is actually trying to exec
/usr/bin/cc1-4.6
So, does that file exist and is it what it should be?
Code:
file /usr/bin/cc1-4.6
ldd /usr/bin/cc1-4.6
(Maybe someone reading this thread, who has gcc working correctly in Ubuntu should be checking whether I interpreted all this correctly. I don't have Ubuntu installed at the moment and I don't have any gcc configured with a suffix.)
Edit: I just checked packages.ubuntu.com and according to that, the correct cc1 is:
/usr/lib/gcc/x86_64-linux-gnu/4.6/cc1
So I'm confused. Maybe I'm misunderstanding what the prefix and suffix reported by gcc -v indicate. Or maybe that is an indication of the OP's problem.