Open kozross opened 2 years ago
This issue occurs on Alpine (specifically, in a Docker container). When I try to run a file foo.lua with the following code in it:
foo.lua
local ffi = require('ffi') ffi.cdef[[ typedef struct { size_t total_size; size_t off; size_t len; uint8_t * src; uint8_t byte; } count_eq_data; ]]
I get an error message like so:
/usr/bin/luajit: foo.lua:1: attempt to call global 'require' (a nil value)
You will need Docker available, and the daemon running.
docker run --privileged multiarch/qemu-user-static --reset -p yes
docker run --rm -i -t s390x/alpine:latest
apk update
apk add luajit
luajit foo.lua
The script should execute (doing nothing), and return a success status code.
Issue
This issue occurs on Alpine (specifically, in a Docker container). When I try to run a file
foo.lua
with the following code in it:I get an error message like so:
How to reproduce
You will need Docker available, and the daemon running.
docker run --privileged multiarch/qemu-user-static --reset -p yes
docker run --rm -i -t s390x/alpine:latest
to start a shell in the emulated Alpine container.apk update
followed byapk add luajit
.foo.lua
.luajit foo.lua
,Expected behaviour
The script should execute (doing nothing), and return a success status code.