Fedora9.0和VMware6.5下編譯核心出現arm-linux-gcc無法找到的錯誤解決辦法

來源:互聯網
上載者:User

     今天在使用預設設定檔編譯核心的時候出現如下錯誤:

代碼 1 make: arm-linux-gcc: Command not found
 2                 ??  HOSTLD  scripts/kconfig/conf
 3 scripts/kconfig/conf -s arch/arm/Kconfig
 4 make: arm-linux-gcc: Command not found
 5                 ??  CHK     include/linux/version.h
 6   Generating include/asm-arm/mach-types.h
 7   CHK     include/linux/utsrelease.h
 8   UPD     include/linux/utsrelease.h
 9   SYMLINK include/asm -> include/asm-arm
10   CC      kernel/bounds.s
11 /bin/sh: line 1: arm-linux-gcc: command not found
12 make[1]: *** [kernel/bounds.s] Error 127
13 make: *** [prepare0] Error 2

make: arm-linux-gcc: Command not found
                ??  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
make: arm-linux-gcc: Command not found
                ??  CHK     include/linux/version.h
  Generating include/asm-arm/mach-types.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CC      kernel/bounds.s
/bin/sh: line 1: arm-linux-gcc: command not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2 

 

    問了下學習LINUX的朋友,原來我沒有安裝arm-linux-gcc,那我安裝的是什麼呢?gcc,gcc是在VMware下進行的核心檔案的編譯,然而你要編譯能夠下載到板子裡面的核心鏡像,你還需要安裝arm-linux-gcc;可是我是按照手冊上走的在安裝啊!原來我在解壓arm-linux-gcc-4.3.2.tgz檔案時,虛擬鏡像裡面的檔案時arm-linux-gcc-4.3.2.gz,可是我還是使用tar xvzf arm-linux-gcc-4.3.2.tgz -C /,當然是沒有解壓成功,於是百度查如何解壓.gz,gzip -d,結果試了,也不行,於是從網上下一個arm-linux-gcc-4.3.2.tgz,老老實實使用tar xvzf arm-linux-gcc-4.3.2.tgz -C /,完成arm-linux-gcc的解壓。於是重新編譯,還是不行?咋回事呢?再次百度,看見有一個哥們和我遇見同樣的問題,不過他應該是安裝arm-linux-gcc的了。盜用他的成果:“用sudo su後就可以編譯了,謝謝樓上各位,不過5樓的朋友,在root使用者下運行arm-linux-gcc -v也是可以執行的”

於是:  sudo su

           make zImage

    等待幾分鐘,編譯成功!

 

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.