记录一下解决在Ubuntu20.04LTS版中安装交叉编译工具链中遇到的arm-none-linux-gnueabi-gcc: not found问题

  1. 安装交叉编译工具链

  2. 将交叉编译工具链添加到全局环境变量使其全局可用

  3. 更新国内阿里镜像源,如果不更新,在安装32位库时会出现各种版本不匹配的问题

    参考(233条消息) Ubuntu 20.04 && Ubuntu 18.04 修改 apt 源_星汉空兮的博客-CSDN博客

    修改source.list文件

    $ sudo vim /etc/apt/sources.list

    替换以下内容到source.list中

    # ubuntu 20.04阿里源
    deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    

    更新软件

    $ sudo apt-get update
    $ sudo apt-get upgrade
    
  4. 安装32位库

    $ sudo apt-get install lib32z1 lib32ncurses5-dev

  5. 使用$ arm-none-linux-gnueabi-gcc -v查看是否安装成功


__EOF__

本文作者Ray963
本文链接https://www.cnblogs.com/ray93/p/16599451.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   ray963  阅读(201)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具
点击右上角即可分享
微信分享提示