-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Document how-to-build.md should add a troubleshooting of luasocket #3281
Comments
I think we can use luajit to interprets the bootstrap. Line 1 in 1a1fe09
What do you think about it? @spacewander |
I will vote for it. |
@fukiki @starsz A better solution is to install luarocks with LuaJIT, and only allow running with LuaJIT. |
@spacewander |
Once I came to the same issue, and thanks to @spacewander, he told me that I have to use It's just my personal clumsy opinion, if there is a doc to guide user to start the APISIX with different versions of Lua, it may reduce the user's starting cost, and at the same time it will expose more issues about APISIX's compatibility, and may also attract more partners to solve problems. Feels good, isn't it. |
@fukiki @liuxiran |
@fukiki we need those information. |
By saying
|
macOS Big Sur (11.1), install lua and luarocks by brew |
I found the change the I agree this idea. This is a good start for APISIX to completely break away from system Lua. By the way. I think this is a problem left over since If you don't want to have an impact on users using centos7, I can add a judgment on Lua version in a similar location |
many thx for your information, I have reproduced this bug with my Mac OS. |
It works fine at my Mac OS. @fukiki I think you can make a try so I think we can set the right |
@spacewander @membphis Changing the Thanks for your help again. |
welcome PR to fix this issue |
Improve Docs
Please describe which part of docs should be improved or typo fixed
When using the latest master branch code, apisix failed to run
make init
:Reason
LuaSocket uses the _luaL_openlib function from Lua 5.0. It should also be available on Lua 5.1 (and 5.2) if certain compatibility flags are defined in luaconf.h while building the Lua executable. Maybe, when installing luaSocket by executing
make deps
(luarocks install luasocket
), the executable was built without compatibility flags.Describe the solution you'd like
Download the source code to compile and install luasocket, then replace the executable file in deps for the project.
Document how-to-build.md should be improved, add the method and steps of compiling luasocket.
The text was updated successfully, but these errors were encountered: