{"action":"created","issue":{"url":"https://api.github.com/repos/openresty/opm/issues/9","repository_url":"https://api.github.com/repos/openresty/opm","labels_url":"https://api.github.com/repos/openresty/opm/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/openresty/opm/issues/9/comments","events_url":"https://api.github.com/repos/openresty/opm/issues/9/events","html_url":"https://github.com/openresty/opm/issues/9","id":179959850,"number":9,"title":"unknown luaJIT command or jit.* modules not installed","user":{"login":"lilien1010","id":3814966,"avatar_url":"https://avatars.githubusercontent.com/u/3814966?v=3","gravatar_id":"","url":"https://api.github.com/users/lilien1010","html_url":"https://github.com/lilien1010","followers_url":"https://api.github.com/users/lilien1010/followers","following_url":"https://api.github.com/users/lilien1010/following{/other_user}","gists_url":"https://api.github.com/users/lilien1010/gists{/gist_id}","starred_url":"https://api.github.com/users/lilien1010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilien1010/subscriptions","organizations_url":"https://api.github.com/users/lilien1010/orgs","repos_url":"https://api.github.com/users/lilien1010/repos","events_url":"https://api.github.com/users/lilien1010/events{/privacy}","received_events_url":"https://api.github.com/users/lilien1010/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-09-29T06:02:28Z","updated_at":"2016-09-29T20:58:28Z","closed_at":null,"body":"/usr/local/openresty/luajit/bin/luajit-2.1.0-beta2: unknown luaJIT command or jit.* modules not installed\r\n\r\nopenresty-1.11.2.1 installed \r\nlastest opm installed\r\nthen I `cp  opm/bin/opm   /usr/local/openresty/bin`\r\nwhen I set dist.ini down and run `opm build`\r\nit shows error like this\r\n`\r\nfound license: BSD 3-Clause \"New\" or \"Revised\" license.\r\nderived main_module file resty/s3uploader.lua\r\n/usr/local/openresty/luajit/bin/luajit-2.1.0-beta2: unknown luaJIT command or jit.* modules not installed\r\nERROR: failed to run command\r\n`\r\n"},"comment":{"url":"https://api.github.com/repos/openresty/opm/issues/comments/250589332","html_url":"https://github.com/openresty/opm/issues/9#issuecomment-250589332","issue_url":"https://api.github.com/repos/openresty/opm/issues/9","id":250589332,"user":{"login":"pintsized","id":57508,"avatar_url":"https://avatars.githubusercontent.com/u/57508?v=3","gravatar_id":"","url":"https://api.github.com/users/pintsized","html_url":"https://github.com/pintsized","followers_url":"https://api.github.com/users/pintsized/followers","following_url":"https://api.github.com/users/pintsized/following{/other_user}","gists_url":"https://api.github.com/users/pintsized/gists{/gist_id}","starred_url":"https://api.github.com/users/pintsized/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pintsized/subscriptions","organizations_url":"https://api.github.com/users/pintsized/orgs","repos_url":"https://api.github.com/users/pintsized/repos","events_url":"https://api.github.com/users/pintsized/events{/privacy}","received_events_url":"https://api.github.com/users/pintsized/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T20:58:28Z","updated_at":"2016-09-29T20:58:28Z","body":"```\r\n[jhurst@sl6 lua-resty-http]$ strace /usr/local/openresty/luajit/bin/luajit-2.1.0-beta2 -b lib/resty/http.lua /dev/null 2>&1|grep -i jit\r\nexecve(\"/usr/local/openresty/luajit/bin/luajit-2.1.0-beta2\", [\"/usr/local/openresty/luajit/bin/\"..., \"-b\", \"lib/resty/http.lua\", \"/dev/null\"], [/* 47 vars */]) = 0\r\nopen(\"/usr/share/lua/5.1/jit/bcsave.lua\", O_RDONLY) = -1 ENOENT (No such file or directory)\r\nopen(\"/usr/lib/lua/5.1/jit/bcsave.so\", O_RDONLY) = -1 ENOENT (No such file or directory)\r\nopen(\"/usr/lib/lua/5.1/jit.so\", O_RDONLY) = -1 ENOENT (No such file or directory)\r\nwrite(2, \"/usr/local/openresty/luajit/bin/\"..., 50/usr/local/openresty/luajit/bin/luajit-2.1.0-beta2) = 50\r\nwrite(2, \"unknown luaJIT command or jit.* \"..., 53unknown luaJIT command or jit.* modules not installed) = 53\r\n```\r\n\r\nSeems it's looking for it in the wrong place for some reason? `/usr/share/lua/5.1/jit` doesn't exist. `bcsave.lua`  does exist in the OpenResty installation....\r\n\r\n```\r\n[jhurst@sl6 lua-resty-http]$ ls -l /usr/local/openresty/luajit/share/luajit-2.1.0-beta2/jit\r\ntotal 180\r\n-rw-r--r--. 1 root root  5620 Sep 20 14:47 bc.lua\r\n-rw-r--r--. 1 root root 18267 Sep 20 14:47 bcsave.lua\r\n-rw-r--r--. 1 root root 19363 Sep 20 14:47 dis_arm.lua\r\n-rw-r--r--. 1 root root   715 Sep 20 14:47 dis_mipsel.lua\r\n-rw-r--r--. 1 root root 13221 Sep 20 14:47 dis_mips.lua\r\n-rw-r--r--. 1 root root 20318 Sep 20 14:47 dis_ppc.lua\r\n-rw-r--r--. 1 root root   712 Sep 20 14:47 dis_x64.lua\r\n-rw-r--r--. 1 root root 32832 Sep 20 14:47 dis_x86.lua\r\n-rw-r--r--. 1 root root 19896 Sep 20 14:47 dump.lua\r\n-rw-r--r--. 1 root root  9092 Sep 20 14:47 p.lua\r\n-rw-r--r--. 1 root root  5755 Sep 20 14:47 v.lua\r\n-rw-r--r--. 1 root root  7356 Sep 20 14:47 vmdef.lua\r\n-rw-r--r--. 1 root root  1002 Sep 20 14:47 zone.lua\r\n```\r\n\r\nThis is a Scientific Linux 6 environment. I compiled OpenResty with a plain `./configure; gmake; sudo gmake install`.\r\n\r\nCould `LUA_PATH` relevant at all?\r\n\r\n```\r\n[jhurst@sl6 lua-resty-http]$ echo $LUA_PATH\r\n/usr/share/lua/5.1/?.lua\r\n```\r\n"}}
{"actor":{"display_login":"pintsized"}}