/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory /home/uLinux/busybox-1.24.2/scripts/gcc-version.sh: line 11: /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
首先按照一篇看看:http://10638473.blog.51cto.com/10628473/1764014
再不行,可以按照如下操作:
[email protected]:~$ arm-none-linux-gnueabi-gcc --help bash: /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory [email protected]:~$ arm-none-linux-gnueabi-gcc -v bash: /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory [email protected]:~$ sudo apt-get install ia32-libs Reading package lists... Done Building dependency tree Reading state information... Done Package ia32-libs is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: lib32ncurses5 lib32z1 E: Package ‘ia32-libs‘ has no installation candidate [email protected]:~$ sudo apt-get install lib32ncurses5 lib32z1 Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: lib32tinfo5 libc6-i386 The following NEW packages will be installed: lib32ncurses5 lib32tinfo5 lib32z1 libc6-i386 0 upgraded, 4 newly installed, 0 to remove and 127 not upgraded. Need to get 2,563 kB of archives. After this operation, 11.3 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://202.197.96.248/files/218000000036D67B/cn.archive.ubuntu.com/ubuntu xenial/main amd64 libc6-i386 amd64 2.23-0ubuntu3 [2,335 kB] Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 lib32tinfo5 amd64 6.0+20160213-1ubuntu1 [76.9 kB] Get:3 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 lib32ncurses5 amd64 6.0+20160213-1ubuntu1 [99.5 kB] Get:4 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 lib32z1 amd64 1:1.2.8.dfsg-2ubuntu4 [52.2 kB] Fetched 2,563 kB in 4s (606 kB/s) Selecting previously unselected package libc6-i386. (Reading database ... 173885 files and directories currently installed.) Preparing to unpack .../libc6-i386_2.23-0ubuntu3_amd64.deb ... Unpacking libc6-i386 (2.23-0ubuntu3) ... Selecting previously unselected package lib32tinfo5. Preparing to unpack .../lib32tinfo5_6.0+20160213-1ubuntu1_amd64.deb ... Unpacking lib32tinfo5 (6.0+20160213-1ubuntu1) ... Selecting previously unselected package lib32ncurses5. Preparing to unpack .../lib32ncurses5_6.0+20160213-1ubuntu1_amd64.deb ... Unpacking lib32ncurses5 (6.0+20160213-1ubuntu1) ... Selecting previously unselected package lib32z1. Preparing to unpack .../lib32z1_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb ... Unpacking lib32z1 (1:1.2.8.dfsg-2ubuntu4) ... Processing triggers for libc-bin (2.23-0ubuntu3) ... Setting up libc6-i386 (2.23-0ubuntu3) ... Setting up lib32tinfo5 (6.0+20160213-1ubuntu1) ... Setting up lib32ncurses5 (6.0+20160213-1ubuntu1) ... Setting up lib32z1 (1:1.2.8.dfsg-2ubuntu4) ... Processing triggers for libc-bin (2.23-0ubuntu3) ... [email protected]:~$ arm-none-linux-gnueabi-gcc -v Using built-in specs. Target: arm-none-linux-gnueabi Configured with: /scratch/julian/2009q3-respin-linux-lite/src/gcc-4.4/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-arch=armv5te --with-gnu-as --with-gnu-ld --with-specs=‘%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables} %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}‘ --enable-languages=c,c++ --enable-shared --disable-lto --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion=‘Sourcery G++ Lite 2009q3-67‘ --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/julian/2009q3-respin-linux-lite/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/julian/2009q3-respin-linux-lite/obj/host-libs-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/2009q3-respin-linux-lite/obj/host-libs-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-ppl=/scratch/julian/2009q3-respin-linux-lite/obj/host-libs-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-host-libstdcxx=‘-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm‘ --with-cloog=/scratch/julian/2009q3-respin-linux-lite/obj/host-libs-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/2009q3-respin-linux-lite/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/julian/2009q3-respin-linux-lite/install/arm-none-linux-gnueabi/bin Thread model: posix gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) [email protected]:~$
OK,搞定。
再到BusyBox目录下执行make命令就可以编译了!
编译大概需要两分钟!
时间: 2024-10-10 16:07:09