{"id":732,"date":"2009-03-29T03:07:11","date_gmt":"2009-03-29T03:07:11","guid":{"rendered":"http:\/\/www.linkovitch.me.uk\/blog\/?p=732"},"modified":"2014-10-20T13:04:25","modified_gmt":"2014-10-20T13:04:25","slug":"debian-and-vmware-server-the-path-usrsrclinuxinclude-is-a-kernel-header-file-directory-but-it-is-not-part-of-kernel-source-tree","status":"publish","type":"post","link":"https:\/\/www.linkovitch.me.uk\/blog\/2009\/03\/debian-and-vmware-server-the-path-usrsrclinuxinclude-is-a-kernel-header-file-directory-but-it-is-not-part-of-kernel-source-tree\/","title":{"rendered":"Debian and VMware server &#8220;The path \/usr\/src\/linux\/include is a kernel header file directory, but it is not part of kernel source tree.&#8221;"},"content":{"rendered":"<p>Yeah a long name I know, but trying to get it stuck in Google so it will be most helpful.<\/p>\n<p>I hit this snag and did a lot of trawling with little luck.  Previously had no issues installing VMWare server, upgrade to Lenny, swap some hardware, decide to get it up and running and POOF! no dice!<\/p>\n<p>Anyway I have solved it (huzzah!) and can finally goto bed \ud83d\ude42<\/p>\n<p>It seems that the error message is related to the lack of .config and or Makefile in the headers.  So a .config or Makefile in  \/usr\/src\/linux\/.<\/p>\n<p>if you have installed your headers :<\/p>\n<p><code>apt-get install linux-headers-$(uname -r)<\/code><\/p>\n<p>have build-essential installed have set CC to be gcc-4.1 yet still you get grief, heres what I found.<\/p>\n<p>If you look in the headers path, you will see .config and Makefile.  Yet no joy!, look closer, the Makefile is a damn pesky SymLink!!!  this goes for most if not all of the buggers.  What you need along with the headers is:<\/p>\n<p>linux-headers-2.6.26-1-common<\/p>\n<p>which should reside in the same directory as your headers:<\/p>\n<p><code>ls<br \/>\nlinux-headers-2.6.26-1-686<br \/>\nlinux-headers-2.6.26-1-common<\/code><\/p>\n<p>The SymLinks point into files in there, for some reason (possibly my own stupidity) I didn&#8217;t have it, possibly deleted it in a fit of disk space recovery before starting the build.<\/p>\n<p>Hopefully that will be of use for someone out there, if not, I am sure I will find it useful when I next cause myself grief \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian and VMware server &#8220;The path \/usr\/src\/linux\/include is a kernel header file directory, but it is not part of kernel source tree.&#8221; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,9],"tags":[20,19],"_links":{"self":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts\/732"}],"collection":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=732"}],"version-history":[{"count":2,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts\/732\/revisions"}],"predecessor-version":[{"id":734,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts\/732\/revisions\/734"}],"wp:attachment":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}