Lua did not build correctly out of the box on this computer -- not lua's fault, but due to an incomplete installation of the GNU compiler collection.
On Debian and Ubuntu, just apt-get install build-essential libreadline5-dev.
-- Anders