เวลาลง 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 ดังต่อไปนี้
จาก WikiBall
ลง build-essential ของ Ubuntu โดยใช้คำสั่งดังต่อไปนี้
apt-get install linux-headers-`uname -r` build-essential
โดย C header file จะอยู่ใน
/lib/modules/2.6.27-7-server/build/include
อ้างอิงจาก

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