You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/06/21 18:36:33 UTC

[GitHub] [trafficserver] shukitchan commented on issue #7960: PANIC: unprotected error in call to Lua API (undefined symbol: lua_gettop)

shukitchan commented on issue #7960:
URL: https://github.com/apache/trafficserver/issues/7960#issuecomment-865256999


   What version of ATS you are using? 
   
   Anyway, we recommend to use luajit with ATS for the plugin. In 7.x luajit is part of the binary and in 8.x and beyond, the ATS lua plugin is compiled only with luajit is found in the system. 
   
   For luasocket to work with luajit, you need to compile that accordingly . This is what i do 
   
   e.g. 
   
   ```
   curl -R -O http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz && \
   tar zxf LuaJIT-2.1.0-beta3.tar.gz && \
   cd LuaJIT-2.1.0-beta3 && \
   make && \
   sudo make install
   
   wget https://github.com/diegonehab/luasocket/archive/v3.0-rc1.tar.gz && \
   tar zvf v3.0-rc1.tar.gz && \
   cd luasocket-3.0-rc1 && \
   sed -i "s/LDFLAGS_linux=-O -shared -fpic -o/LDFLAGS_linux=-O -shared -fpic -L\/usr\/lib -lluajit-5.1 -o/" src/makefile && \
   ln -sf /usr/lib/libluajit-5.1.so.2.1.0 /usr/lib/libluajit-5.1.so && \
   make && \
   sudo make install-unix
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org