如题所述
1ãé¦å
以rootç¨æ·ç»å
¥
2ãå¤å¶arm-linux-gcc-4.3.2.tgzå°æ ¹ç®å½ä¸tmpæ件夹é
3ã解åå½ä»¤tar xvzf arm-linux-gcc-4.3.2 -C /
注æ以ä¸å½ä»¤å¿ é¡»è¦æ-Cèä¸æ¯å¤§åï¼åè¾¹æä¸ªç©ºæ ¼ä¹è¦æ³¨æã
4ãé ç½®ä¸ç¼è¯ç¯å¢è·¯å¾ å¨æ§å¶å°ä¸è¾å ¥ gedit /root/.bashrc çä¸ä¼åºæ¥ææ¬ç¼è¾å¨åå¨æ件æåï¼æåä¸è¡ï¼å ä¸ä¸é¢ä»£ç ã
export PATH=/usr/local/arm/4.3.2/bin:$PATH
ä¿åå ³éåï¼æ³¨éå½åç¨æ·ï¼ç¨rootè´¦å·éæ°ç»å½ç³»ç»ï¼ä½¿ååæ·»å çç¯å¢åéçæï¼ã
æ¤æ¶å¯ä»¥å¨æ§å¶å°è¾å ¥ï¼ arm-linux-gcc -v å¦æå®è£ æåå°ä¼è¾åº arm-linux-gccççæ¬å·ã
è¥æ³è®©å®å¨éè¶ çº§ç¨æ·ä¸ä½¿ç¨é£ãé¦å ï¼ä»¥éè¶ çº§ç¨æ·ç»å ¥ã
1ã è¾å ¥å½ä»¤ï¼vi ï½/.bashrcç¼è¾.bashrcæ件ï¼å¨æ件æ«å°¾å å ¥å¦ä¸é¢çå 容
export PATH=/usr/local/arm/4.3.2/bin:$PATH
2ãè¾å ¥å½ä»¤ï¼gedit /etc/profile
å¨æ件çæ«å°¾å ä¸ï¼PATH=/usr/local/arm/4.3.2/bin:$PATH
ä¿å对profileçä¿®æ¹åï¼æ§è¡source /etc/profileå°±OKäºï¼å¥½äºéæ ·å 注éå½åç¨æ·åç»å½åè¿å ¥æ§å¶å°æ§è¡arm-linux-gcc -v ççè½å¦æ§è¡æåå°±å¯ä»¥äºã
2ãå¤å¶arm-linux-gcc-4.3.2.tgzå°æ ¹ç®å½ä¸tmpæ件夹é
3ã解åå½ä»¤tar xvzf arm-linux-gcc-4.3.2 -C /
注æ以ä¸å½ä»¤å¿ é¡»è¦æ-Cèä¸æ¯å¤§åï¼åè¾¹æä¸ªç©ºæ ¼ä¹è¦æ³¨æã
4ãé ç½®ä¸ç¼è¯ç¯å¢è·¯å¾ å¨æ§å¶å°ä¸è¾å ¥ gedit /root/.bashrc çä¸ä¼åºæ¥ææ¬ç¼è¾å¨åå¨æ件æåï¼æåä¸è¡ï¼å ä¸ä¸é¢ä»£ç ã
export PATH=/usr/local/arm/4.3.2/bin:$PATH
ä¿åå ³éåï¼æ³¨éå½åç¨æ·ï¼ç¨rootè´¦å·éæ°ç»å½ç³»ç»ï¼ä½¿ååæ·»å çç¯å¢åéçæï¼ã
æ¤æ¶å¯ä»¥å¨æ§å¶å°è¾å ¥ï¼ arm-linux-gcc -v å¦æå®è£ æåå°ä¼è¾åº arm-linux-gccççæ¬å·ã
è¥æ³è®©å®å¨éè¶ çº§ç¨æ·ä¸ä½¿ç¨é£ãé¦å ï¼ä»¥éè¶ çº§ç¨æ·ç»å ¥ã
1ã è¾å ¥å½ä»¤ï¼vi ï½/.bashrcç¼è¾.bashrcæ件ï¼å¨æ件æ«å°¾å å ¥å¦ä¸é¢çå 容
export PATH=/usr/local/arm/4.3.2/bin:$PATH
2ãè¾å ¥å½ä»¤ï¼gedit /etc/profile
å¨æ件çæ«å°¾å ä¸ï¼PATH=/usr/local/arm/4.3.2/bin:$PATH
ä¿å对profileçä¿®æ¹åï¼æ§è¡source /etc/profileå°±OKäºï¼å¥½äºéæ ·å 注éå½åç¨æ·åç»å½åè¿å ¥æ§å¶å°æ§è¡arm-linux-gcc -v ççè½å¦æ§è¡æåå°±å¯ä»¥äºã
温馨提示:答案为网友推荐,仅供参考