"Original" LUA compilation found missing ReadLine library

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.