新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > 安裝配置arm-linux-gcc

安裝配置arm-linux-gcc

作者: 時間:2016-11-21 來源:網(wǎng)絡 收藏
下載arm-linux-gcc并解壓,把里面的arm文件夾整個cp到/usr/local/

本文引用地址:http://www.butianyuan.cn/article/201611/319136.htm

然后是注冊環(huán)境

一般是修改profile

1:對于ubuntu中profile是調(diào)用/etc/bash.bashrc來運行的

在/etc/bash.bashrc后加上

if [ -d /usr/local/arm ] ; then

PATH=/usr/local/arm/2.95.3/bin:"${PATH}"

fi

2:在Federal下可以vi /etc/profile;在出現(xiàn)pathmunge 的語句段后添加pathmunge /usr/local/arm/2.1.3(版本號)/bin;

然后source /etc/profile更新一下就可以用arm-linux-gcc進行編譯了

測試 :

# arm-linux-gcc -v

工具已經(jīng)安裝成功了就會出現(xiàn)相應的版本號!

否則會提示

bash: arm-linux-gcc: command not found



評論


相關推薦

技術專區(qū)

關閉