用Make編輯linux核心
用Make編輯linux核心
1,tar -xvf linux-2.6.18.3.tar
tar -jxvf linux-2.6.10.tar.bz2
2,mv linux-2.6.18.3 /usr/src
3,檢視現在使用的版本資訊
[root@localhost linux-2.6.18.3]# uname -a
Linux localhost.localdomain 2.6.9-42.EL #1 Wed Jul 12 23:16:43 EDT 2006 i686 i686 i386 GNU/Linux
4,[root@localhost tapeback]# rpm -aq | grep gcc
libgcc-3.4.5-2
compat-libgcc-296-2.96-132.7.2
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
[root@localhost tapeback]# rpm -ivh gcc-3.4.5-2.i386.rpm
warning: gcc-3.4.5-2.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:gcc ########################################### [100%]
5,
[root@localhost linux1]# make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
[root@localhost linux1]# make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
SHIPPED scripts/kconfig/zconf.tab.h
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/lxdialog/checklist.o
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:32:20: curses.h: No such file or directory
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:130: error: syntax error before "use_colors"
scripts/lxdialog/dialog.h:130: warning: type defaults to `int' in declaration of `use_colors'
scripts/lxdialog/dialog.h:130: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:131: error: syntax error before "use_shadow"
scripts/lxdialog/dialog.h:131: warning: type defaults to `int' in declaration of `use_shadow'
scripts/lxdialog/dialog.h:131: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:133: error: syntax error before "attributes"
scripts/lxdialog/dialog.h:133: warning: type defaults to `int' in declaration of `attributes'
scripts/lxdialog/dialog.h:133: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/lxdialog/dialog.h:146: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:149: error: syntax error before '*' token
scripts/lxdialog/dialog.h:149: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:150: error: syntax error before '*' token
scripts/lxdialog/dialog.h:150: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:151: error: syntax error before '*' token
scripts/lxdialog/dialog.h:152: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:153: error: syntax error before '*' token
scripts/lxdialog/dialog.h:153: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c:32: error: syntax error before '*' token
scripts/lxdialog/checklist.c:34: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_item':
scripts/lxdialog/checklist.c:38: warning: implicit declaration of function `wattrset'
scripts/lxdialog/checklist.c:38: error: `win' undeclared (first use in this function)
scripts/lxdialog/checklist.c:38: error: (Each undeclared identifier is reported only once
scripts/lxdialog/checklist.c:38: error: for each function it appears in.)
scripts/lxdialog/checklist.c:39: warning: implicit declaration of function `wmove'
scripts/lxdialog/checklist.c:39: error: `choice' undeclared (first use in this function)
scripts/lxdialog/checklist.c:41: warning: implicit declaration of function `waddch'
scripts/lxdialog/checklist.c:44: error: `selected' undeclared (first use in this function)
scripts/lxdialog/checklist.c:46: warning: implicit declaration of function `wprintw'
scripts/lxdialog/checklist.c:46: error: `status' undeclared (first use in this function)
scripts/lxdialog/checklist.c:51: warning: implicit declaration of function `mvwaddch'
scripts/lxdialog/checklist.c:51: error: `item' undeclared (first use in this function)
scripts/lxdialog/checklist.c:53: warning: implicit declaration of function `waddstr'
scripts/lxdialog/checklist.c:56: warning: implicit declaration of function `wrefresh'
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:64: error: syntax error before '*' token
scripts/lxdialog/checklist.c:66: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_arrows':
scripts/lxdialog/checklist.c:67: error: `win' undeclared (first use in this function)
scripts/lxdialog/checklist.c:67: error: `y' undeclared (first use in this function)
scripts/lxdialog/checklist.c:67: error: `x' undeclared (first use in this function)
scripts/lxdialog/checklist.c:69: error: `scroll' undeclared (first use in this function)
scripts/lxdialog/checklist.c:82: error: `height' undeclared (first use in this function)
scripts/lxdialog/checklist.c:85: error: `item_no' undeclared (first use in this function)
scripts/lxdialog/checklist.c:85: error: `choice' undeclared (first use in this function)
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:103: error: syntax error before '*' token
scripts/lxdialog/checklist.c:104: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_buttons':
scripts/lxdialog/checklist.c:105: error: `width' undeclared (first use in this function)
scripts/lxdialog/checklist.c:106: error: `height' undeclared (first use in this function)
scripts/lxdialog/checklist.c:108: error: `dialog' undeclared (first use in this function)
scripts/lxdialog/checklist.c:108: error: `selected' undeclared (first use in this function)
scripts/lxdialog/checklist.c: In function `dialog_checklist':
scripts/lxdialog/checklist.c:126: error: `WINDOW' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: error: `dialog' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: error: `list' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: warning: left-hand operand of comma expression has no effect
scripts/lxdialog/checklist.c:132: warning: implicit declaration of function `endwin'
scripts/lxdialog/checklist.c:133: warning: implicit declaration of function `fprintf'
scripts/lxdialog/checklist.c:133: error: `stderr' undeclared (first use in this function)
scripts/lxdialog/checklist.c:150: error: `COLS' undeclared (first use in this function)
scripts/lxdialog/checklist.c:151: error: `LINES' undeclared (first use in this function)
scripts/lxdialog/checklist.c:153: error: `stdscr' undeclared (first use in this function)
scripts/lxdialog/checklist.c:155: warning: implicit declaration of function `newwin'
scripts/lxdialog/checklist.c:156: warning: implicit declaration of function `keypad'
scripts/lxdialog/checklist.c:156: error: `TRUE' undeclared (first use in this function)
scripts/lxdialog/checklist.c:189: warning: implicit declaration of function `subwin'
scripts/lxdialog/checklist.c:221: warning: implicit declaration of function `wnoutrefresh'
scripts/lxdialog/checklist.c:223: warning: implicit declaration of function `doupdate'
scripts/lxdialog/checklist.c:226: warning: implicit declaration of function `wgetch'
scripts/lxdialog/checklist.c:233: error: `KEY_UP' undeclared (first use in this function)
scripts/lxdialog/checklist.c:233: error: `KEY_DOWN' undeclared (first use in this function)
scripts/lxdialog/checklist.c:243: error: `FALSE' undeclared (first use in this function)
scripts/lxdialog/checklist.c:244: warning: implicit declaration of function `scrollok'
scripts/lxdialog/checklist.c:245: warning: implicit declaration of function `wscrl'
scripts/lxdialog/checklist.c:272: error: called object is not a function
scripts/lxdialog/checklist.c:308: warning: implicit declaration of function `delwin'
scripts/lxdialog/checklist.c:312: error: `KEY_LEFT' undeclared (first use in this function)
scripts/lxdialog/checklist.c:313: error: `KEY_RIGHT' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: warning: statement with no effect
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/dialog.h:133: warning: array 'attributes' assumed to have one element
make[2]: *** [scripts/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
[root@localhost linux1]#
錯誤原因,缺少軟體
6,rpm -ivh ncurses-devel-5.4-13.i386.rpm
7,make O=/home/name/build/kernel menuconfig
8, make O=/home/name/build/kernel
9, sudo make O=/home/name/build/kernel modules_install install
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/312079/viewspace-245543/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 編譯核心make dep 的意思(轉)編譯
- 求助 :ubuntu 編譯核心後(make -jn),sudo make modules_install報錯Ubuntu編譯
- 快速上手Linux核心命令(六):Linux的文字編輯器vi和vimLinux
- caffe make 編譯編譯
- linux編輯器Linux
- 編譯linux核心編譯Linux
- Linux下使用make命令編譯c原始檔Linux編譯
- linux用什麼編輯器寫python?LinuxPython
- linux下用vi,vim編輯時退出編輯模式(wq)無法儲存退出Linux模式
- LINUX VIM編輯器Linux
- Linux核心模組編譯Linux編譯
- linux核心修改編譯Linux編譯
- 如何編譯 Linux 核心編譯Linux
- Linux核心配置 make menuconfig時出現缺失ncurses庫Linux
- 高效學習Linux核心——核心模組編譯Linux編譯
- Linux中編輯影片字幕Linux
- Linux 命令如何編輯 PDF?Linux
- Linux文字編輯器JedLinux
- Linux 退出Vi編輯器Linux
- Linux VI編輯命令使用Linux
- Linux 常見編輯器Linux
- 附錄A Linux 編譯核心Linux編譯
- Linux make編譯報錯:undefined reference to `vtable for XXX 'Linux編譯Undefined
- Linux之Vim文字程式碼編輯神器應用get技巧Linux
- 如何在 Linux 中編輯字幕Linux
- Linux編輯器Vim簡介Linux
- Linux命令列編輯快捷鍵Linux命令列
- linux 命令列編輯快捷鍵Linux命令列
- Linux精講——vim編輯器Linux
- Make編譯之編譯32bit ffmpeg編譯
- PDF編輯器怎麼用?如何編輯PDF檔案內容
- Linux 的./configure,make,make install的作用Linux
- Linux make命令介紹Linux
- linux命令之vi文字編輯器Linux
- Linux基礎命令---文字編輯tacLinux
- Linux基礎命令---文字編輯sedLinux
- Linux基礎命令---文字編輯teeLinux
- Linux基礎命令---vim文字編輯Linux