yoho wrote:1) Yes, I need it because I want to install VMWare tools on my mageia guest virtual machine. VMWare tools come with a loadable kernel module but it has to be compiled against the kernel you're currently running on the machine. To compile the module, you need to run a command-line wizard and provide the path to your kernel headers (default is /usr/src/include but this path doesn't exist in Mageia). For some reason, the wizard is not pleased with "/usr/src/kernel-4.9.50-server-1.mga6/include/", I read somewhere that it's searching for a file named "linux.h" but I indeed can't find it. The wizard tells that a potential reason why this file is not present may be that the kernel has never been compiled... hence the reason why I'm now trying to compile it, although I'm not really sure if it will solve my problem.
See, this is a good example for a typical XY problem, and this is also pretty important information that should be contained in your original post in the first place.
Your question should have been simply "how do I install vmware tools on my mageia guest virtual machine ?" with the information added what you already tried so far and the copy&paste of the commands and errors you got.