sudo apt update
sudo apt install luarocks libcurl4-openssl-dev apt-file
sudo apt-file update
sudo apt-file list libcurl4-openssl-dev # this tells you where the headers will be
sudo luarocks install lua-curl CURL_INCDIR=/usr/include/x86_64-linux-gnu # or wherever it put that file