Debugging experience of the HelloWorld module-general Linux technology-Linux programming and kernel information. The following is a detailed description. 1. Compile
The following error is returned:-1 invalid module format
Error cause:
Current kernel kernel-2.6.25.14-69.fc8
And
The version kernel-devel-2.6.23.1-42.fc8 of the kernel source tree used for compilation is inconsistent.
The reason for executing yum update causes the kernel to be upgraded without the corresponding kernel-devel. So the solution is to return to the previous version. you can press the TAB when linux is started to trigger the kernel selection menu.
In addition, we found that to install a previous version of kernel, You can first install yum-allowdowngrade and then execute
Yum -- allow-downgrade install kernel. i686 (the installation module can be found through yum list all)
Another problem encountered when I changed the kernel was that the Term was not output, and later I found that
/Var/log/messages
If you want to see the print on the Term, you can open a new Terminal and enter
Tail-f/var/log/messages
In this way, every change to the messages file is displayed on the new Term.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service