Hello,
I’m experiencing this issue while trying to install a custom lua library, so I can use it in the scripts ;
orthanc | E0129 13:11:46.209987 OrthancException.h:85] Cannot execute a Lua command: error loading module ‘socket.core’ from file ‘/usr/lib/x86_64-linux-gnu/lua/5.1/socket/core.so’:
orthanc | /usr/lib/x86_64-linux-gnu/lua/5.1/socket/core.so: undefined symbol: luaL_openlib
When I print the _VERSION in the script, it says Lua 5.3 but when I check the libraries inside the docker, it’s only 5.1 - I don’t know if this is intended?
I’m using this docker script :
enable lua to find external modules (this list is obtained by running “return package.path” in a lua prompt)
ENV LUA_PATH=“./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua”
ENV LUA_CPATH=“./?.so;/usr/local/lib/lua/5.1/?.so;/usr/lib/x86_64-linux-gnu/?.so;/usr/lib/x86_64-linux-gnu/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so”
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y liblua5.1-socket
And my LUA script:
require “socket”
I tried it from : https://groups.google.com/forum/#!searchin/orthanc-users/docker$20lua$20socket|sort:date/orthanc-users/C9HfrMat3FQ/H9yeYlqxBwAJ