Ubuntu下安装arm-linux-gcc的问题

[复制链接]
 楼主| 不爱说话 发表于 2008-1-15 20:02 | 显示全部楼层 |阅读模式
我之前一直使用FC4作为u-boot的编译环境。
最近操作系统换为Ubuntu7.10,还是按照以前的办法安装交叉编译工具,然后在.bashrc文件中添加交叉编译工具路径
export PATH=/usr/local/arm/3.3.2/bin:$PATH

可是在使用make命令编译u-boot时出现下面的错误,麻烦大家看看是怎么回事,百思不得其解

make: arm-linux-gcc:命令未找到
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: arm-linux-gcc:命令未找到
make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/tools'
make[1]: arm-linux-gcc:命令未找到
make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/tools'
make[1]: arm-linux-gcc:命令未找到
make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/examples'
/bin/sh: arm-linux-gcc: not found
dirname: 缺少操作数
请尝试执行‘dirname --help’来获取更多信息。
/bin/sh: arm-linux-gcc: not found
dirname: 缺少操作数
请尝试执行‘dirname --help’来获取更多信息。
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
make[1]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。
make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/examples'
make[1]: arm-linux-gcc:命令未找到
make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/post'
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
make[1]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。
make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/post'
make[1]: arm-linux-gcc:命令未找到
make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/post/cpu'
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
/bin/sh: arm-linux-gcc: not found
make[1]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。
make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/post/cpu'
make: *** [depend] 错误 2
 楼主| 不爱说话 发表于 2008-1-16 08:23 | 显示全部楼层

希望有人知道这是怎么回事

雨人浪浪 发表于 2010-4-12 21:42 | 显示全部楼层
不知道是不是头文件没有安装呀,呵呵呵
zusen 发表于 2010-4-13 17:16 | 显示全部楼层
直接在终端里输入 export PATH=/usr/local/arm/3.3.2/bin:$PATH
这样手动地设置了环境变量
然后再make
不行的话,看看是不是你的路径有没问了~~
 楼主| 不爱说话 发表于 2010-4-14 08:45 | 显示全部楼层
oh,my god。我两年前的帖子又被顶起来了,真是没想到。
我已经不搞这个了,谢谢大家了。
wise_man 发表于 2010-4-14 10:10 | 显示全部楼层
网上有别人编译过的交叉编译起。直接解压到指定目录(应该是放到/usr/local/下),然后vi .bashrc(最后一行加入export PATH=/usr/local/??)
雨人浪浪 发表于 2010-4-19 20:08 | 显示全部楼层
那你现在干什么呀,呵呵。工作了吗?
 楼主| 不爱说话 发表于 2010-4-20 09:14 | 显示全部楼层
本帖最后由 不爱说话 于 2010-4-20 09:16 编辑

现在专注于各种MCU,小型的电子设备,有条件搞搞ARM7+uclinux,主流的ARM9,ARM11等等都是BGA封装的,PCB需要4-6层,打板价格高。我个人没有实力搞定。
mingyanren 发表于 2013-8-3 10:58 | 显示全部楼层
遇到同样的问题,求大神解答
DC@DREAM 发表于 2013-8-26 22:48 | 显示全部楼层
谢谢楼主的分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则

115

主题

886

帖子

34

粉丝
快速回复 在线客服 返回列表 返回顶部