Compile the LuaLua project, which used the lua-5.1 version of the source code, compile-time prompt missing ReadLine library, can not find readline/readline.h header files, etc.
The discovery system actually has installed the ReadLine library but did not do the link and the header file directory copy, anyway regardless of these, when does not have, reinstall ReadLine Library
1. Download readline-6.2.tar.gz
Wget-c ftp://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz
Put it in a directory, such as/usr/local/
and unzip it out tar xzvf readline-6.2.tar.gz
Enter the source directory cd/usr/local/readline-6.2
2. Configuring the Makefile File
Executes the./configure generates a compiled file for the system environment makefile, which has post-compilation. A. So include places to place and ln links, etc.
3. Compiling and installing
Make && make install
After installation, you can see that the static Library dynamic library header file has been placed in a given location
/usr/local/lib/libreadline.a
/usr/local/lib/libreadline.so
/usr/local/include/readline/
To compile the LuaLua will be completed successfully.
In addition: Lua5.2.x's luaconf.h has no include readline.h, only than 5.2 earlier versions have
"Original" LUA compilation found missing ReadLine library