{"id":24856,"date":"2025-03-30T20:55:40","date_gmt":"2025-03-30T12:55:40","guid":{"rendered":"https:\/\/www.wxcn.com\/?p=24856"},"modified":"2025-03-30T20:55:40","modified_gmt":"2025-03-30T12:55:40","slug":"centos-linux7-9-make%e5%ae%89%e8%a3%85%e7%bd%91%e5%8d%a1%e9%a9%b1%e5%8a%a8%e6%8a%a5%e9%94%99%e7%9a%84%e5%a4%84%e7%90%86%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.wxcn.com\/?p=24856","title":{"rendered":"Centos linux7.9 make\u5b89\u88c5\u7f51\u5361\u9a71\u52a8\u62a5\u9519\u7684\u5904\u7406\u529e\u6cd5"},"content":{"rendered":"<p>\u4e00\u53f0Centos linux7.9\u670d\u52a1\u5668\uff0c\u901a\u8fc7make install\u5b89\u88c5\u7f51\u5361\u9a71\u52a8\u65f6\uff0c\u62a5\u9519\uff0c\u62a5\u9519\u4fe1\u606f\u5982\u4e0b\uff1a<br \/>\ncommon.mk:79: *** Kernel header files not in any of the expected locations.<br \/>\ncommon.mk:80: *** Install the appropriate kernel development package, e.g.<br \/>\ncommon.mk:81: *** kernel-devel, for building kernel modules and try again. Stop.<\/p>\n<p>\u6b64\u79cd\u60c5\u51b5\uff0c\u9700\u8981\u5148\u5b89\u88c5kernel-devel\uff0c\u4f7f\u7528rpm -qa kernel-devel\u53d1\u73b0kernel-devel\u679c\u7136\u6ca1\u88c5\uff0c\u901a\u8fc7\u6302\u8f7d\u672c\u5730yum\u5b89\u88c5kernel-devel\uff0c\u518d\u6b21make install\u4ecd\u7136\u6709\u62a5\u9519\uff0c\u62a5\u9519\u4fe1\u606f\u5982\u4e0b\uff1a<br \/>\n\/bin\/sh: cc: command not found<\/p>\n<p>\u6b64\u79cd\u60c5\u51b5\uff0c\u9700\u8981\u5b89\u88c5gcc\uff0c\u901a\u8fc7yum\u5b89\u88c5gcc\u540e\uff0c\u518d\u6b21make install\u5c31\u53ef\u4ee5\u6b63\u5e38\u5b89\u88c5\u7f51\u5361\u9a71\u52a8\u4e86\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u5982\u679c\u6709.ko\u683c\u5f0f\u7684\u9a71\u52a8\uff0c\u5219\u53ea\u9700\u8981insmod xxx.ko\u7f51\u5361\u9a71\u52a8\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u53f0Centos linux7.9\u670d\u52a1\u5668\uff0c\u901a\u8fc7make install\u5b89\u88c5\u7f51\u5361\u9a71\u52a8\u65f6\uff0c\u62a5\u9519\uff0c\u62a5\u9519\u4fe1\u606f\u5982\u4e0b\uff1a c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[70,183,604,545],"class_list":["post-24856","post","type-post","status-publish","format-standard","hentry","category-operating-system","tag-centos","tag-linux-2","tag-make","tag-545"],"_links":{"self":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/24856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24856"}],"version-history":[{"count":1,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/24856\/revisions"}],"predecessor-version":[{"id":24857,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/24856\/revisions\/24857"}],"wp:attachment":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}