Error src/lcrypto.c:30:10: fatal error: lua.h: No such file or directory when trying install luacrypto using luarocks

I want to secure my jitsi server using jwt token, when i follow the tutorial here Rocket Chat part 3: Installing Jitsi with JWT for secure video conferencing | by Sze(‘Z’) Wong | Medium there is an error occur when i try to install luacrypto using luarocks command:

sudo luarocks install luacrypto

there is an error occured:
src/lcrypto.c:30:10: fatal error: lua.h: No such file or directory

Please i dont got any clue to solve this error

When we see the error in capture, there is an attempt luarocks to use lua5.1, how to change this one? cause what i already installed in my system is lua5.2. (i assume this that make the error)

You don’t need such a package