Centos 6.5 編譯Lilo 22.8
最近在調查一個bug,這個bug的詳細調查結果,在下一篇博文中進行描述。在本bug調查過程中,牽扯到bootloader —— LILO的編譯。
LILO的HomePage:http://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。目前我們的編譯環境中尚未安裝該部分工具。
通過http://rpmfind.net/查詢,確定as86、ld86、bcc工具包含在dev86包中,通過以下命令進行安裝即可。
- sudo yum install dev86