Ubuntu 安装arm-linux-gcc编译器

/**********************************************************************************
 *                      Ubuntu 安装arm-linux-gcc编译器
 * 说明:
 *     Ubuntu下直接安装arm-linux-gcc编译器,省得去配置那些环境。
 *
 *                                           2017-3-21 深圳 南山平山村 曾剑锋
 *********************************************************************************/

一、参考文档:
    Install the ARM cross compiler toolchain on your Linux Ubuntu PC
        https://www.acmesystems.it/arm9_toolchain

二、查找支持armhf的软件包名:
    zengjf@zengjf:~/zengjf/zengjfos/busybox/busybox-1.26.2$ sudo apt-cache search arm | grep gcc | grep armhf
    gcc-arm-linux-gnueabihf - GNU C compiler for the armhf architecture
    libgcc-6-dev-armhf-cross - GCC support library (development files)
    libgcc1-armhf-cross - GCC support library
    gcc-multilib-arm-linux-gnueabihf - GNU C compiler for the armhf architecture
    gccgo-arm-linux-gnueabihf - Go compiler (based on GCC) for the armhf architecture
    libgcc-4.7-dev-armhf-cross - GCC support library (development files)
    libgcc-4.9-dev-armhf-cross - GCC support library (development files)
    libgcc-5-dev-armhf-cross - GCC support library (development files)
    libgcc1-dbg-armhf-cross - GCC support library (debug symbols)
    libsfgcc-4.7-dev-armhf-cross - GCC support library (soft float ABI development files)
    libsfgcc-4.9-dev-armhf-cross - GCC support library (soft float ABI development files)
    libsfgcc-5-dev-armhf-cross - GCC support library (soft float ABI development files)
    libsfgcc-6-dev-armhf-cross - GCC support library (soft float ABI development files)
    libsfgcc1-armhf-cross - GCC support library (soft float ABI)
    libsfgcc1-dbg-armhf-cross - GCC support library (debug symbols)

三、安装命令:
    1. sudo apt-get install gcc-arm-linux-gnueabihf
    2. 安装结果:
        zengjf@zengjf:~/zengjf/zengjfos/busybox/busybox-1.26.2$ arm
        arm2hpdl                          arm-linux-gnueabihf-gcc           arm-linux-gnueabihf-gcov-6        arm-linux-gnueabihf-objdump
        arm-linux-gnueabihf-addr2line     arm-linux-gnueabihf-gcc-6         arm-linux-gnueabihf-gcov-tool     arm-linux-gnueabihf-ranlib
        arm-linux-gnueabihf-ar            arm-linux-gnueabihf-gcc-ar        arm-linux-gnueabihf-gcov-tool-6   arm-linux-gnueabihf-readelf
        arm-linux-gnueabihf-as            arm-linux-gnueabihf-gcc-ar-6      arm-linux-gnueabihf-gprof         arm-linux-gnueabihf-size
        arm-linux-gnueabihf-c++filt       arm-linux-gnueabihf-gcc-nm        arm-linux-gnueabihf-ld            arm-linux-gnueabihf-strings
        arm-linux-gnueabihf-cpp           arm-linux-gnueabihf-gcc-nm-6      arm-linux-gnueabihf-ld.bfd        arm-linux-gnueabihf-strip
        arm-linux-gnueabihf-cpp-6         arm-linux-gnueabihf-gcc-ranlib    arm-linux-gnueabihf-ld.gold       
        arm-linux-gnueabihf-dwp           arm-linux-gnueabihf-gcc-ranlib-6  arm-linux-gnueabihf-nm            
        arm-linux-gnueabihf-elfedit       arm-linux-gnueabihf-gcov          arm-linux-gnueabihf-objcopy

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值