Skip to content


วิธีการลง C Kernel header File ใน Ubuntu

เวลาลง VMWare server ใน linux ตัวติดตั้งจะต้องการการคอมไพล์โดยใช้ header ของตัว linux kernel โดยจะขึ้นข้อความมาถาม ดังต่อไปนี้

What is the location of the directory of C header files that match
 your running kernel?

ในคำสั่งด้านบน ถ้าใส่ directory ผิดจะมีการขึ้นข้อความในลักษณะดังต่อไปนี้

The header files in /usr/include are generally for C libraries, not for the
running kernel. If you do not have kernel header files in your /usr/src
directory, you probably do not have the kernel-source package installed. Are
you sure that /usr/include contains the header files associated with your
running kernel?

ในกรณีที่ยังไม่มี C header file ดังกล่าว ให้ลง build-essential ของ Ubuntu ดังต่อไปนี้

Posted in Application, C/C++, Linux.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.