Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲

CentOS 6.5 下編譯 LILO 22.8 遇到 as86 缺失的解決方法

編輯:關於 Android 開發

CentOS 6.5 下編譯 LILO 22.8 的解決記錄

最近在排查一個 bug(詳細結果會在下一篇博文中描述),過程中牽扯到 bootloader——LILO 的編譯。

LILO 官網:https://lilo.alioth.debian.org/

下載、解壓後執行 make,卻報了以下錯誤:

[root@localhost lilo-22.8]# make all
./checkit
GCC version 2.91 or later is required
gcc version 4.4.7
OKAY

AS86 version 0.16.10 or later is required
as86 is not present

LD86 version 0.16.10 or later is required
ld86 is not present

BCC version 0.16.10 or later is recommended
bcc is not present
You will not be able to make floppy2, diag2.img, or lilo.com
make: *** [test.img] Error 1

原因:編譯 LILO 需要用到 16 位、32 位匯編編譯器 as86,而當前編譯環境尚未安裝這部分工具。

通過 https://rpmfind.net/ 查詢確認,as86、ld86、bcc 都包含在 dev86 包中,用以下命令安裝即可:

sudo yum install dev86
  1. 上一篇文章:
  2. 下一篇文章:
Copyright © Android教程網 All Rights Reserved