- 论坛徽章:
- 0
|
你试下 arm-linux-gcc -v罢,我上次把这个忘了.arm-linux-gcc我也出现过此类问题.你可以参照一下,hope this helps.
Mon Dec 25 10:35:05 CST 2006
Solution of one error(one type of errors)
Description of the error:
The error such as "installation problem, cannot exec `cc1': No such file or
directory..." occured while you(I) was compiling something.
Solution:
This error's reason is an incorrectly path for the cross toolchain you
installed.So,the user(you) can perform the command "arm-elf-gcc -v" to make
a view of the compiler's version ,configuration-path and other info.
The messages outputed after I performed the command are showing below:
[root@BFD5BFD5 at91sam9260ek]# arm-elf-gcc -v
Reading specs from /srv/shared/gnuarm/gnuarm-3.4.3/lib/gcc/arm-elf/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --target=arm-elf
--prefix=/srv/shared/gnuarm/gnuarm-3.4.3 --enable-interwork --enable-multilib
--with-newlib --with-headers=../newlib-1.12.0/newlib/libc/include
--enable-languages=c,c++,java --disable-libgcj
Thread model: single
gcc version 3.4.3
You can find the first line over this message.So,the ancient path which
configured by www.gnuarm.com is /srv/shared/gnuarm,but not in the default
position as /usr/local/arm.
So,do those serveral steps showing below:
> mkdir /srv/shared/gnuarm
> mv (the directory you uncompressed the cross toolchain)/gnuarm-3.4.3 \
/srv/shared/gnuarm
And note,the last step is modify /etc/profile.Change environment variable
PATH.En.... this one:
PATH=$PATH:/srv/shared/gnuarm/gnuarm-3.4.3/bin
save and quit.Then restart your Linux.All will be OK.
[ 本帖最后由 Pacer 于 2007-1-5 10:08 编辑 ] |
|