As a new linux user, not totally understanding the ways of Linux I had trouble building darktable with Lua support.
Having followed the thead here with no joy, I ended up googling a solution and found that I need to install the dev version on the library.
sudo apt-get install lua5.3-dev