sphshine 发表于 2011-12-13 19:37

linux中建立交叉编译环境遇到问题

装arm-linux-gcc,用了很多种方法,比如在 ~/.bash_profile 最后添加 PATH=$PATH:/usr/local/arm/4.3.2/bin

                                       在root/./bashrc中添加export PATH=$PATH:/usr/local/arm/4.3.2/bin



   最终echo $PATH有相应路径出现(usr/local/arm/4.3.2/bin),按理说应该装好了,可是用到arm-linux-gcc就说command not found,而且执行arm-linux-gcc -v 也会出现这个错误,请问高手这是什么问题啊?我用虚拟机linux 9.0谢谢!!

MMMIX 发表于 2011-12-14 09:39

回复 1# sphshine


    使用绝对路径执行呢?

hanzhenlll 发表于 2011-12-14 15:55

看看你的/usr/local/arm/4.3.2/bin 这个路径下有没有arm-linux-gcc

liubin6267 发表于 2011-12-18 22:40

这要看你的工具链放什么位置了,去这个路径下确认arm-linux-gcc存在吗?

Smarking 发表于 2013-02-12 00:47

楼上正解,这是我的配置,vim /etc/profile

dxwno1 发表于 2013-02-27 00:27

编译器解压的位置不对?

流氓无产者 发表于 2013-02-27 09:11

ls -l /usr/local/arm/4.3.2/bin/arm-linux-gcc
页: [1]
查看完整版本: linux中建立交叉编译环境遇到问题