I am seeing this under mac os:
mame 0.268
Copyright (C) Nicola Salmoria and the MAME team
Lua 5.4
Copyright (C) Lua.org, PUC-Rio
[MAME]> dofile("/Users/user_name/proj/ast/luaclient.lua")
error: error loading module 'socket.core' from file '/Users/user_name/.luarocks/lib/lua/5.4/socket/core.so':
dynamic libraries not enabled; check your Lua installation
Is there a recommended method by which mame can be compiled so that the Lua interpreter allows the use of dynamic libraries? I am willing to assume the security risks for my use case.