{"action":"created","issue":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/818","repository_url":"https://api.github.com/repos/openresty/lua-nginx-module","labels_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/818/labels{/name}","comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/818/comments","events_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/818/events","html_url":"https://github.com/openresty/lua-nginx-module/issues/818","id":164053882,"number":818,"title":"Failing to load compiled lua byte code using lua_package_path","user":{"login":"krugar100","id":19889586,"avatar_url":"https://avatars.githubusercontent.com/u/19889586?v=3","gravatar_id":"","url":"https://api.github.com/users/krugar100","html_url":"https://github.com/krugar100","followers_url":"https://api.github.com/users/krugar100/followers","following_url":"https://api.github.com/users/krugar100/following{/other_user}","gists_url":"https://api.github.com/users/krugar100/gists{/gist_id}","starred_url":"https://api.github.com/users/krugar100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krugar100/subscriptions","organizations_url":"https://api.github.com/users/krugar100/orgs","repos_url":"https://api.github.com/users/krugar100/repos","events_url":"https://api.github.com/users/krugar100/events{/privacy}","received_events_url":"https://api.github.com/users/krugar100/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-07-06T11:21:26Z","updated_at":"2016-07-06T20:45:31Z","closed_at":null,"body":"I am trying to compile [lua-resty-waf](https://github.com/p0pr0ck5/lua-resty-waf) to byte code using [LuaJIT-2.1.0-beta2](http://luajit.org/download/LuaJIT-2.1.0-beta2.tar.gz) using \r\n\r\nfor f in $(find ./ -name '*.lua'); \r\ndo \r\n    luajit-2.1.0-beta2 -b $f `dirname $f`/`basename $f .lua`.o\r\ndone\r\n\r\nand liking this in the nginx template as \r\n\r\nlua_package_path '/usr/local/openresty/lualib/lua_resty_waf/?.o;;';\r\nlua_package_cpath '/usr/local/openresty/lualib/lua_resty_waf/?.o;;';\r\n\r\n(I am trying to load bytecode files using lua_package_path && lua_package_cpath, is it supported in the first place? )\r\n\r\nThis was the same procedure mentioned in [here](https://github.com/openresty/lua-nginx-module#lualuajit-bytecode-support)\r\n\r\nBut when i do `nginx -s reload` , I get\r\nnginx: [error] init_by_lua_file error: error loading module 'waf' from file '/usr/local/openresty/lualib/lua_resty_resty/waf.o':\r\n/usr/local/openresty/lualib/lua_resty_resty/waf.o:1: unexpected symbol near 'char(127)'\r\n\r\nThis occurs when I try to load waf using `require \"waf\" `. "},"comment":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/comments/230900767","html_url":"https://github.com/openresty/lua-nginx-module/issues/818#issuecomment-230900767","issue_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/818","id":230900767,"user":{"login":"agentzh","id":56241,"avatar_url":"https://avatars.githubusercontent.com/u/56241?v=3","gravatar_id":"","url":"https://api.github.com/users/agentzh","html_url":"https://github.com/agentzh","followers_url":"https://api.github.com/users/agentzh/followers","following_url":"https://api.github.com/users/agentzh/following{/other_user}","gists_url":"https://api.github.com/users/agentzh/gists{/gist_id}","starred_url":"https://api.github.com/users/agentzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentzh/subscriptions","organizations_url":"https://api.github.com/users/agentzh/orgs","repos_url":"https://api.github.com/users/agentzh/repos","events_url":"https://api.github.com/users/agentzh/events{/privacy}","received_events_url":"https://api.github.com/users/agentzh/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T20:45:31Z","updated_at":"2016-07-06T20:45:31Z","body":"@krugar100 How did you build your OpenResty? What's the `./configure` command line? I hope you are not mixing with the stuff here:\r\n\r\nhttps://github.com/openresty/lua-nginx-module/#statically-linking-pure-lua-modules\r\n\r\nBecause they are VERY different things."}}
{"actor":{"display_login":"agentzh"}}