0

When starting the nginx service on a raspberry pi 2, I get this error:

lua file : bad header in precompiled chunk.

When reading the lua file in Notepad++, I see normal text and jibberish:

screenshot 1 lua file with Notepad++

screenshot 2 lua file with Notepad++

The lua version is 5.1 I believe.

Is the file corrupted or protected? Or the wrong lua version /architecture? The file is used on a SOM with an imx6 processor, but I would like it to work on a pi...

Is this even possible?

Regards, Bert

Taazar
  • 1,545
  • 18
  • 27
Bert
  • 1

1 Answers1

0

You use precompiled lua files which are not compatible with lua version you are running such as compiled for 5.3, trying to run on 5.1, or compiled with different number data types or different endian.

Darius
  • 1,060
  • 2
  • 6
  • 17