{"id":42549,"date":"2025-06-10T01:03:59","date_gmt":"2025-06-09T17:03:59","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/42549.html"},"modified":"2025-06-10T01:03:59","modified_gmt":"2025-06-09T17:03:59","slug":"centos-7-9%e5%ae%89%e8%a3%85nginx1-24-0%e6%97%b6%e6%8a%a5-checking-for-luajit-2-x-not-found","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/42549.html","title":{"rendered":"CentOS 7.9\u5b89\u88c5Nginx1.24.0\u65f6\u62a5 checking for LuaJIT 2.x ... not found"},"content":{"rendered":"<p>Nginx1.24\u7f16\u8bd1\u65f6&#xff0c;\u62a5LuaJIT2.x\u9519\u8bef&#xff0c;<\/p>\n<p>configuring additional modules<br \/>\nadding module <span class=\"token keyword\">in<\/span> \/www\/server\/nginx\/src\/ngx_devel_kit<br \/>\n &#043; ngx_devel_kit was configured<br \/>\nadding module <span class=\"token keyword\">in<\/span> \/www\/server\/nginx\/src\/lua_nginx_module<br \/>\nchecking <span class=\"token keyword\">for<\/span> LuaJIT <span class=\"token number\">2<\/span>.x <span class=\"token punctuation\">..<\/span>. not found<br \/>\n    .\/configure: error: unsupported LuaJIT version<span class=\"token punctuation\">;<\/span> ngx_http_lua_module requires LuaJIT <span class=\"token number\">2<\/span>.x.<\/p>\n<p>1.\u9996\u5148\u786e\u8ba4\u7cfb\u7edf\u4e2d\u662f\u5426\u5b58\u5728&#xff0c;\u4f7f\u7528\u547d\u4ee4&#xff1a;luajit -v<\/p>\n<p><span class=\"token comment\"># luajit -v<\/span><br \/>\nLuaJIT <span class=\"token number\">2.1<\/span>.0-beta3 &#8212; Copyright <span class=\"token punctuation\">(<\/span>C<span class=\"token punctuation\">)<\/span> <span class=\"token number\">2005<\/span>-2022 Mike Pall. https:\/\/luajit.org\/<\/p>\n<p>2.\u5982\u679c\u5b58\u5728 &#xff0c;\u4e00\u822c\u5728 \/usr\/local\/include \u76ee\u5f55\u4e0b<\/p>\n<p><span class=\"token comment\"># ll \/usr\/local\/include\/luajit-2.1\/<\/span><br \/>\ntotal <span class=\"token number\">44<\/span><br \/>\n-rw-r&#8211;r&#8211; <span class=\"token number\">1<\/span> root root  <span class=\"token number\">6028<\/span> Jun  <span class=\"token number\">7<\/span> <span class=\"token number\">20<\/span>:50 lauxlib.h<br \/>\n-rw-r&#8211;r&#8211; <span class=\"token number\">1<\/span> root root  <span class=\"token number\">4593<\/span> Jun  <span class=\"token number\">7<\/span> <span class=\"token number\">20<\/span>:50 luaconf.h<br \/>\n-rw-r&#8211;r&#8211; <span class=\"token number\">1<\/span> root root <span class=\"token number\">12650<\/span> Jun  <span class=\"token number\">7<\/span> <span class=\"token number\">20<\/span>:50 lua.h<br \/>\n-rw-r&#8211;r&#8211; <span class=\"token number\">1<\/span> root root   <span class=\"token number\">135<\/span> Jun  <span class=\"token number\">7<\/span> <span class=\"token number\">20<\/span>:50 lua.hpp<br \/>\n-rw-r&#8211;r&#8211; <span class=\"token number\">1<\/span> root root  <span class=\"token number\">3019<\/span> Jun  <span class=\"token number\">7<\/span> <span class=\"token number\">20<\/span>:50 luajit.h<br \/>\n-rw-r&#8211;r&#8211; <span class=\"token number\">1<\/span> root root  <span class=\"token number\">1197<\/span> Jun  <span class=\"token number\">7<\/span> <span class=\"token number\">20<\/span>:50 lualib.h<\/p>\n<p>3.\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">LUAJIT_INC<\/span><span class=\"token operator\">&#061;<\/span>\/usr\/local\/include\/luajit-2.1\/<br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">LUAJIT_LIB<\/span><span class=\"token operator\">&#061;<\/span>\/usr\/local\/lib<\/p>\n<p>4.\u91cd\u65b0\u8fd0\u884c .\/configure \u547d\u4ee4<\/p>\n<p>5.\u4ee5\u4e0b\u9519\u8bef\u662f\u3010.\/configure: error: unsupported LuaJIT build; ngx_http_lua_module requires LuaJIT with FFI enabled.\u3011\u662f\u56e0\u4e3a\u6ca1\u8f93\u5165\u3010export LUAJIT_LIB&#061;\/usr\/local\/lib\u3011<\/p>\n<p>configuring additional modules<br \/>\nadding module <span class=\"token keyword\">in<\/span> \/www\/server\/nginx\/src\/ngx_devel_kit<br \/>\n &#043; ngx_devel_kit was configured<br \/>\nadding module <span class=\"token keyword\">in<\/span> \/www\/server\/nginx\/src\/lua_nginx_module<br \/>\nchecking <span class=\"token keyword\">for<\/span> LuaJIT library <span class=\"token keyword\">in<\/span>  and \/usr\/local\/include\/luajit-2.1 <span class=\"token punctuation\">(<\/span>specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">..<\/span>. found<br \/>\nchecking <span class=\"token keyword\">for<\/span> LuaJIT <span class=\"token number\">2<\/span>.x <span class=\"token punctuation\">..<\/span>. found<br \/>\nchecking <span class=\"token keyword\">for<\/span> Lua language <span class=\"token number\">5.1<\/span> <span class=\"token punctuation\">..<\/span>. found<br \/>\nchecking <span class=\"token keyword\">for<\/span> LuaJIT has FFI <span class=\"token punctuation\">..<\/span>. not found<br \/>\n    .\/configure: error: unsupported LuaJIT build<span class=\"token punctuation\">;<\/span> ngx_http_lua_module requires LuaJIT with FFI enabled.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb459\u6b21\u3002\u6458\u8981\uff1aNginx1.24\u7f16\u8bd1\u65f6\u9047\u5230LuaJIT2.x\u9519\u8bef\uff0c\u89e3\u51b3\u65b9\u6848\u4e3a\uff1a1\uff09\u786e\u8ba4\u7cfb\u7edf\u5df2\u5b89\u88c5LuaJIT2.x\uff1b2\uff09\u68c0\u67e5LuaJIT\u5934\u6587\u4ef6\u4f4d\u7f6e\uff08\u901a\u5e38\u5728\/usr\/local\/include\/luajit-2.1\/\uff09\uff1b3\uff09\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfLUAJIT_INC\u548cLUAJIT_LIB\uff1b4\uff09\u91cd\u65b0\u8fd0\u884cconfigure\u3002\u82e5\u51fa\u73b0FFI\u672a\u542f\u7528\u9519\u8bef\uff0c\u9700\u786e\u4fdd\u6b63\u786e\u8bbe\u7f6e\u4e86LUAJIT_LIB\u8def\u5f84\u3002\u8be5\u95ee\u9898\u662f\u7531\u4e8e\u7f16\u8bd1\u5668\u672a\u6b63\u786e\u627e\u5230LuaJIT\u5e93\u8def\u5f84\u6240\u81f4\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[59,58,117,44],"topic":[],"class_list":["post-42549","post","type-post","status-publish","format-standard","hentry","category-server","tag-centos","tag-linux","tag-nginx","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CentOS 7.9\u5b89\u88c5Nginx1.24.0\u65f6\u62a5 checking for LuaJIT 2.x ... not found - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/42549.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CentOS 7.9\u5b89\u88c5Nginx1.24.0\u65f6\u62a5 checking for LuaJIT 2.x ... not found - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb459\u6b21\u3002\u6458\u8981\uff1aNginx1.24\u7f16\u8bd1\u65f6\u9047\u5230LuaJIT2.x\u9519\u8bef\uff0c\u89e3\u51b3\u65b9\u6848\u4e3a\uff1a1\uff09\u786e\u8ba4\u7cfb\u7edf\u5df2\u5b89\u88c5LuaJIT2.x\uff1b2\uff09\u68c0\u67e5LuaJIT\u5934\u6587\u4ef6\u4f4d\u7f6e\uff08\u901a\u5e38\u5728\/usr\/local\/include\/luajit-2.1\/\uff09\uff1b3\uff09\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfLUAJIT_INC\u548cLUAJIT_LIB\uff1b4\uff09\u91cd\u65b0\u8fd0\u884cconfigure\u3002\u82e5\u51fa\u73b0FFI\u672a\u542f\u7528\u9519\u8bef\uff0c\u9700\u786e\u4fdd\u6b63\u786e\u8bbe\u7f6e\u4e86LUAJIT_LIB\u8def\u5f84\u3002\u8be5\u95ee\u9898\u662f\u7531\u4e8e\u7f16\u8bd1\u5668\u672a\u6b63\u786e\u627e\u5230LuaJIT\u5e93\u8def\u5f84\u6240\u81f4\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/42549.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-09T17:03:59+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42549.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/42549.html\",\"name\":\"CentOS 7.9\u5b89\u88c5Nginx1.24.0\u65f6\u62a5 checking for LuaJIT 2.x ... not found - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-09T17:03:59+00:00\",\"dateModified\":\"2025-06-09T17:03:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/42549.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/42549.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42549.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CentOS 7.9\u5b89\u88c5Nginx1.24.0\u65f6\u62a5 checking for LuaJIT 2.x ... not found\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CentOS 7.9\u5b89\u88c5Nginx1.24.0\u65f6\u62a5 checking for LuaJIT 2.x ... not found - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/42549.html","og_locale":"zh_CN","og_type":"article","og_title":"CentOS 7.9\u5b89\u88c5Nginx1.24.0\u65f6\u62a5 checking for LuaJIT 2.x ... not found - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb459\u6b21\u3002\u6458\u8981\uff1aNginx1.24\u7f16\u8bd1\u65f6\u9047\u5230LuaJIT2.x\u9519\u8bef\uff0c\u89e3\u51b3\u65b9\u6848\u4e3a\uff1a1\uff09\u786e\u8ba4\u7cfb\u7edf\u5df2\u5b89\u88c5LuaJIT2.x\uff1b2\uff09\u68c0\u67e5LuaJIT\u5934\u6587\u4ef6\u4f4d\u7f6e\uff08\u901a\u5e38\u5728\/usr\/local\/include\/luajit-2.1\/\uff09\uff1b3\uff09\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfLUAJIT_INC\u548cLUAJIT_LIB\uff1b4\uff09\u91cd\u65b0\u8fd0\u884cconfigure\u3002\u82e5\u51fa\u73b0FFI\u672a\u542f\u7528\u9519\u8bef\uff0c\u9700\u786e\u4fdd\u6b63\u786e\u8bbe\u7f6e\u4e86LUAJIT_LIB\u8def\u5f84\u3002\u8be5\u95ee\u9898\u662f\u7531\u4e8e\u7f16\u8bd1\u5668\u672a\u6b63\u786e\u627e\u5230LuaJIT\u5e93\u8def\u5f84\u6240\u81f4\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/42549.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-09T17:03:59+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/42549.html","url":"https:\/\/www.wsisp.com\/helps\/42549.html","name":"CentOS 7.9\u5b89\u88c5Nginx1.24.0\u65f6\u62a5 checking for LuaJIT 2.x ... not found - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-09T17:03:59+00:00","dateModified":"2025-06-09T17:03:59+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/42549.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/42549.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/42549.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"CentOS 7.9\u5b89\u88c5Nginx1.24.0\u65f6\u62a5 checking for LuaJIT 2.x ... not found"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=42549"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42549\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=42549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=42549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=42549"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=42549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}