Closed nodecentral closed 3 weeks ago
Assuming you use my Alpine image as basis (since the Debian based image does not contain LuaRocks at all): in order to keep the image as small as possible, all libraries, files, etc. that are only needed during image creation are removed as soon as possible. This means that all development headers that are needed to build libexpat, do not exist in the image,
LuaExpat should however already be available, in both images (see Alpine Dockerfile or Debian Dockerfile.
Both require("lxp")
and require("lxp/lom")
work on both images.
Many thanks @vwout ,
I’m using your alpine image, and all the above in my opening post, came from that command line...
If it’s supposed to be there already i’ll try again..
I’m looking to install an xml parser in support of
require("lxp/lom")
and i came across this to use luarocks, (https://community.ezlo.com/t/lua-module-lxp-not-found/191497) but I’ve not been able to get it to work , please see below..To access the openluup docker command line i entered
docker exec -it openluup /bin/sh
and then ranluarocks install LuaExpat
which returned the following error messages..Looking at
whoiam
I’m logged in as root, and can see luarocks is installed and where it sits..I’ve tried various things found online, some below, but nothing has worked so far..
Just wondering if you had any ideas..