-
Notifications
You must be signed in to change notification settings - Fork 2k
luarocks #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, I tried requiring and using several luarocks-installed modules in ngx_lua, including luasocket and luayaml, and found no errors. Could you show us some problematic modules and example scripts? Thanks! |
Hi, Depending on the
Or this kind :
|
Hi, Rocks luasocket/lpeg/luajson work well with ngx_lua in my environment...Would you please offer the following commands' output?
|
Hi, Here it is :
I don't know how to get Thank you for the support. |
Hi, It's weird that your nginx executable doesn't export any luaL_* symbols. What about the standard lua executable? Would you run the nm cmdline on it again and paste its output? Besides, the strace output of nginx is also helpful. Please run:
Access the problematic script, then interrupt strace and send both strace.log and the script itself to me. Thanks |
Here it is :
|
Sorry, I mean the output of |
Here it is :
|
It seems that nginx executable doesn't export lua related symbols, so lua c-modules doesn't work. On Linux there's -E linking options to do executable symbols exporting, I don't know if OSX has some linking options with similar behavior. Could you search your linker's document to find some hints? |
You compiled nginx with homebrew interactive shell, right? I tried this way under OSX, and found that homebrew strangely disabled all exported symbols from installed nginx executable file. The exported symbols are correct both in the building directory AND installed directory, as long as we are in homebrew interactive shell. We have to find out what had it done after building shell exited. |
OK...homebrew just stripped debug symbols out of nginx executables, normally this should be okay. But it seems that lpeg could not work in such a environment, we have to dig out reason from lpeg... |
Sorry, the problem is related to luarocks, not lpeg. We'll find out how to solve it.... |
Sorry for the delay but I just tried and could not reproduce this issue on Mac OS X 10.6.8 using the standard nginx tarball and plain gcc (shipped by Xcode). How exactly did you build your nginx/ngx_lua? Have you stripped dynamic symbols from your nginx executable? Can you try out the ngx_openresty bundle to see if it works with your LuaRocks modules? http://openresty.org/#Download |
Consider it resolved. |
Is it possible to make it works with luarocks ?
if yes, how ?
i can require luarocks itself
require("luarocks.require")
, but i call another library i installed with luarocks i got some errors.The text was updated successfully, but these errors were encountered: