scrapinghub / splash

Lightweight, scriptable browser as a service with an HTTP API
BSD 3-Clause "New" or "Revised" License
4.08k stars 514 forks source link

Installing custom Lua modules like luasocket #1107

Open mwbelt opened 3 years ago

mwbelt commented 3 years ago

Has anybody had any luck installing more advanced custom Lua modules, like luasocket? Even going through everything suggested anywhere, I cannot get it to work. I've made sure I'm compiling it for Lua 5.2, which is what is running on my current Docker image.

I've successfully installed my own custom Lua modules that I've written myself, but installing these more advanced ones is killing me.

For luasocket, no matter what I do, I get: error loading module 'socket.core' from file '/usr/local/lib/lua/5.2/socket/core.so': /usr/local/lib/lua/5.2/socket/core.so: undefined symbol: lua_gettop