Lua.c:80:31:fatal error:readline/readline.h:no such file or directory

Source: Internet
Author: User
Tags lua readline

Make Linux
CD src && make Linux
MAKE[1]: Entering directory '/ROOT/LUA/LUA-5.3.2/SRC '
Make all syscflags= "-dlua_use_linux" syslibs= "-wl,-e-ldl-lreadline"
MAKE[2]: Entering directory '/ROOT/LUA/LUA-5.3.2/SRC '
GCC-STD=GNU99-O2-WALL-WEXTRA-DLUA_COMPAT_5_2-DLUA_USE_LINUX-C-O lua.o lua.c
Lua.c:80:31:fatal error:readline/readline.h:no such file or directory
#include <readline/readline.h>
^
Compilation terminated.
MAKE[2]: * * * [LUA.O] Error 1
MAKE[2]: Leaving directory '/ROOT/LUA/LUA-5.3.2/SRC '
MAKE[1]: * * [Linux] Error 2
MAKE[1]: Leaving directory '/ROOT/LUA/LUA-5.3.2/SRC '
Make: * * * [Linux] Error 2

Workaround:
Missing Libreadline-dev Dependency Package
Centos:yum Install Readline-devel
Debian:apt-get install Libreadline-dev.

http://www.vcerror.com/?p=1786

# Make Linux
CD src && make Linux
MAKE[1]: Entering directory '/HOME/LUA/LUA-5.3.2/SRC '
Make all syscflags= "-dlua_use_linux" syslibs= "-wl,-e-ldl-lreadline"
MAKE[2]: Entering directory '/HOME/LUA/LUA-5.3.2/SRC '
GCC-STD=GNU99-O2-WALL-WEXTRA-DLUA_COMPAT_5_2-DLUA_USE_LINUX-C-O lua.o lua.c
Gcc-std=gnu99-o Lua LUA.O Liblua.a-lm-wl,-e-ldl-lreadline
GCC-STD=GNU99-O2-WALL-WEXTRA-DLUA_COMPAT_5_2-DLUA_USE_LINUX-C-O luac.o luac.c
Gcc-std=gnu99-o Luac LUAC.O Liblua.a-lm-wl,-e-ldl-lreadline
MAKE[2]: Leaving directory '/HOME/LUA/LUA-5.3.2/SRC '
MAKE[1]: Leaving directory '/HOME/LUA/LUA-5.3.2/SRC '

Source: http://www.cnblogs.com/softidea/archive/2016/03/02/5236498.html

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.