Windows downloaded the linux-2.6.37 kernel source code, copy to the U disk, mounted to the centos 5.5 System in the virtual machine through Mount. You can use Putty to connect to the VM using host-only.
Mount the U disk in the/mnt/directory, copy the kernel compressed package to/mnt/kernel, tar decompress, enter the linux-2.6.37 directory. Run make menconfig. The prompt is:
Make [1]: *** no rule to make target 'menconfig'. Stop.
As follows:
For this error, it must be performed in the usr/src directory. However, make menconfig cannot be run if the CP file is in the usr/src directory.
If the Kernel File is corrupted, the latest file is downloaded again. But the error is still reported :(
Fortunately, make config. In order to try it out, press enter all directly .....
Config is generated. However, make prompts:
Make: *** no rule to make target 'include/config/auto. conf', needed by 'include/config/kernel. release'. Stop.
No solution has been found. Write down :(
// I just looked at it and found that the error "make" was reported because the. config file could not be found. Remember what was generated. After generation, I also looked at it with vim. config. I don't know where to go. Use make config again (make menconfig is still unavailable .) Generate the. config file. Making
// I went to the Internet to check it out. Some people say they want to go to the/usr/src directory. So try again before going to bed.
Create/linux-2.6.38 as root under the usr/src directory. CP linux-2.6.38.4.tar.bz2 to the/usr/src/linux-2.6.38 directory.
Tar-xjvf linux-2.6.25.tar.bz2
Decompress the Kernel File. Entry/usr/src/linux-2.6.38/linux-2.6.38.4
Run make menconfig. The error is still reported, but this error is a speechless error. The error message is as follows:
Your display is too small to run menuconfig!
It must be at least 19 lines by 80 columns.
The size of the notebook window is as large as that. To display multiple windows at the same time, we are used to making the window smaller. I did not expect this to report an error -_-!!!
Change the size of the putty window. Make menconfig again. Well, the long-awaited screen has finally appeared. It's embarrassing for Iraq :)
Paste the picture to commemorate it, and then go to bed. We will continue to clean up tomorrow, so that we can live our lives .....
:
1. the kernel compilation can be decompressed to any directory without the need to decompress it to the/usr/src directory.
2. When using the make command during kernel compilation, you must enter the decompressed directory.
3. Make menuconfig instead of make menconfig. The difference between the two is a U. The first error was caused by a command usage error.
// 2011-04-26,22: 34: 27 go to make menuconfig .....