> /usr/local/lib/libreadline.so: undefined reference to `tputs' http://www.lua.org/manual/5.2/readme.html#install says: If you're running Linux and get compilation errors, make sure you have installed the readline development package. If you get link errors after that, then try "make linux MYLIBS=-ltermcap". Same thing in http://www.lua.org/work/doc/#install .