ubantu14.04版本 arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 的安裝__linux

來源:互聯網
上載者:User

安裝基本開發包
root@ubuntu:~# apt-get update && apt-get install -y build-essential bison flex manpages-dev
root@ubuntu:~# echo $?
0

安裝 arm-linux-gcc
解壓 arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 來自韋東山教學光碟片
tar xf arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2

安裝 sudo apt-get install lsb-core
否則可能出現No such file or directory
root@ubuntu:~/leds# arm-linux-objcopy
bash: /home/username/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-objcopy: No such file or directory

更改系統PATH
username@ubuntu:~ sudovim/home/username/.bashrcexportPATH= sudo vim /home/username/.bashrc export PATH=PATH::/home/username/gcc-3.4.5-glibc-2.3.6/bin/

看看我的系統 編譯環境搭建好了
username@ubuntu:~$ arm-linux-gcc -v
Reading specs from /home/username/gcc-3.4.5-glibc-2.3.6/bin/../lib/gcc/arm-linux/3.4.5/specs
Configured with: /work/tools/create_crosstools/crosstool-0.43/build/arm-linux/gcc-3.4.5-glibc-2.3.6/gcc-3.4.5/configure –target=arm-linux –host=i686-host_pc-linux-gnu –prefix=/work/tools/gcc-3.4.5-glibc-2.3.6 –with-float=soft –with-headers=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux/include –with-local-prefix=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux –disable-nls –enable-threads=posix –enable-symvers=gnu –enable-__cxa_atexit –enable-languages=c,c++ –enable-shared –enable-c99 –enable-long-long
Thread model: posix
gcc version 3.4.5

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.