在 CentOS 6.5 上編譯 LILO 22.8 時,make 過程中報錯提示:
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
原因在於 LILO 編譯需要 16 位與 32 位組譯器 as86、ld86 及 C 編譯器 bcc,預設環境未安裝。
經查詢 rpmfind.net 確認,上述工具均打包在 dev86 套件中。執行以下命令即可解決:
sudo yum install dev86
安裝完成後重新執行 make,即可正常編譯通過。
LILO 官方首頁:https://lilo.alioth.debian.org/。若遇到其他缺少依賴的情況,同理可通過 yum provides 查詢所屬套件進行安裝。