首页 / LINUX / 编译Uboot时出错:【已解决】 /bin/bash: arm-linux-gcc: command not found dirname: missing operand Try 'dirn
编译Uboot时出错:【已解决】 /bin/bash: arm-linux-gcc: command not found dirname: missing operand Try 'dirn
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了编译Uboot时出错:【已解决】 /bin/bash: arm-linux-gcc: command not found dirname: missing operand Try 'dirn,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1225字,纯文字阅读大概需要2分钟。
内容图文
![编译Uboot时出错:【已解决】 /bin/bash: arm-linux-gcc: command not found dirname: missing operand Try](/upload/InfoBanner/zyjiaocheng/978/5d975326bdd240968a6ff908ee7cf5b2.jpg)
编译Uboot时出错:
错误信息如下:
/bin/bash: arm-linux-gcc: command not found dirname: missing operand Try 'dirname --help' for more information.
经查阅资料,找到如下解决办法:
1. 32位 arm-linux-gnueabi-gcc/as/ld.. 在64位上面运行缺少必要的依赖。
我找到的依赖有如下(可能不全,缺少的可以百度/谷歌 关键词):
sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev x11proto-core-dev u-boot-tools libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos libncurses5-dev python-markdown libxml2-utils xsltproc zlib1g-dev:i386
2.
/bin/bash: arm-linux-gcc: command not found
其中的 arm-linux-gcc 指的是 符号链接。出现该错误的原因是 没有为可执行文件建立符号链接。在该处可以这样做:
sudo ln -s /usr/local/arm/4.5.1/bin/arm-none-linux-gnueabi-gcc /usr/bin/arm-linux-gcc
该条命令的意思是:
为 /usr/local/arm/4.5.1/bin/ 目录下的可执行文件 arm-none-linux-gnueabi-gcc 建立符号链接。符号链接建立在 /usr/bin 下, 符号链接的名字叫做 arm-linux-gcc
/usr/bin 就是 /bin/bash: 指的目录
类似的,还可以为 as, ld, objcopy, objdump, ar, nm 建立相应的符号链接。
3. 交叉编译器的路径未设置正确。解决方法网上比较多。该处不赘述。
P.S. 我遇到的问题 用的第二个办法解决了的。
内容总结
以上是互联网集市为您收集整理的编译Uboot时出错:【已解决】 /bin/bash: arm-linux-gcc: command not found dirname: missing operand Try 'dirn全部内容,希望文章能够帮你解决编译Uboot时出错:【已解决】 /bin/bash: arm-linux-gcc: command not found dirname: missing operand Try 'dirn所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。