Installation on a VMware virtual machine arm-linux-gcc

Record what
operating systems: CentOS7
Linux Version: 4.9.25-27.el7.1.b1.13

  1. Download arm-gcc-linux
    private link, please inform the infringement: https://pan.baidu.com/s/1_-rbsjnYpQ74pk863j5cBg
    extraction code: e1jn

  2. Waiting time to enter the virtual machine directory / usr / local /, mkdir arm / create directories, modify the properties of the folder is rwx, enter the command: chmod 777 arm. After the download is complete compressed into directory tar -zxvf a (tab key filled) decompression.

  3. Here basically installed, in order to avoid having to enter the full path to it in each time you use arm-linux-gcc, so here we want to modify the environment variable $ PATH.
    vi / etc / profile, open the profile file, in the last line with: then "export PATH = (dollar sign) PATH /usr/local/arm/opt/FriendlyARM/toolschain/4.5.1/bin": wq to save the file.

  4. Now the new environment variables to take effect, enter: source / etc / profile. Then enter: echo $ PATH environment variable to view.

  5. Finally, check whether the installation is complete, enter: arm-linux-gcc -v Version information

Encountered /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory error, execute yum install glibc.i686.

Finally, arm-gcc-linux -v to display correctly.

[root@localhost syx]# arm-linux-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gcc
COLLECT_LTO_WRAPPER=/usr/local/arm/opt/FriendlyARM/toolschain/4.5.1/bin/../libexec/gcc/arm-none-linux-gnueabi/4.5.1/lto-wrapper
Target: arm-none-linux-gnueabi
Configured with: /work/toolchain/build/src/gcc-4.5.1/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.5.1 --with-sysroot=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root --enable-languages=c,c++ --disable-multilib --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-fpu=vfp --with-float=softfp --with-pkgversion=ctng-1.8.1-FA --with-bugurl=http://www.arm9.net/ --disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-gmp=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-mpfr=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-ppl=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-cloog=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-mpc=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-libelf=/work/toolchain/build/arm-none-linux-gnueabi/build/static --enable-threads=posix --with-local-prefix=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root --disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.5.1 (ctng-1.8.1-FA) 
Published 52 original articles · won praise 72 · views 280 000 +

Guess you like

Origin blog.csdn.net/qq_44710568/article/details/105246618