gcc can not find cc1

lulu he loloseed@gmail.com
Thu Jun 10 04:41:00 GMT 2010


2010/6/9 Kai Ruottu <kai.ruottu@wippies.com>:
> 9.6.2010 16:17, lulu he kirjoitti:
>
>> I've successfully installed gcc4.3.3 on my server.
>>
>> I write a simple hello.c,and
>> gcc -o hello hello.c
>>
>> an error was encounted:
>> gcc: error trying to exec 'cc1': execvp: no such file or directory
>>
>> But I can see cc1 in ..../libexec/gcc/x86_64-unknown-linux-gnu/4.3.3.
>>
>> It seems gcc could not find cc1.
>
> Please try:
>
> gcc -print-search-dirs
>
> and
>
> gcc -print-prog-name=cc1
>
> These will tell what the problem is...
>
Hi,

Right, that seems to be wrong with the path.
And I have done lots soft links to fix it.

Could u tell me an easy way to prevent that troublesome thing from
happening when do the right configure.

My configure is :
../gcc-4.3.3/configure --enable-language=c,c++,java
--prefix=/usr/local/gcc-4.3.3 --enable-shared --with-system-zlib
--without-include-gettext --enable-threads=posix --enable-nls
--enable-libstdcxx-debug --enable-mpfr --enable-gmp
--enable-targets=all --enable-checking=release --disable-multilib

I only specify "--prefix= " option , could u guys tell me whether any
other options about path are needed???

Thanks.



More information about the Gcc-help mailing list