I would like to try lua 5.2.0-beta but after "make linux", I get the following error:

Asked by ngochoaian on 2012-02-18

cd src && make linux
make[1]: Entering directory `/home/bibi/lua-5.2.0/src'
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -lncurses"
make[2]: Entering directory `/home/bibi/lua-5.2.0/src'
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.c
lua.c:67:31: fatal error: readline/readline.h: No such file or directory
compilation terminated.
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory `/home/bibi/lua-5.2.0/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/home/bibi/lua-5.2.0/src'
make: *** [linux] Error 2

Please, help me!

Question information

Language:
English Edit question
Status:
Solved
For:
MySQL Proxy Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Kneschke
Solved:
2012-02-20
Last query:
2012-02-20
Last reply:
2012-02-19
Best Jan Kneschke (jan-kneschke) said : #1

Am 18.02.2012 um 17:01 schrieb ngochoaian:

> New question #188132 on MySQL Proxy:
> https://answers.launchpad.net/mysql-proxy/+question/188132
>
> cd src && make linux
> make[1]: Entering directory `/home/bibi/lua-5.2.0/src'
> make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -lncurses"
> make[2]: Entering directory `/home/bibi/lua-5.2.0/src'
> gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.c
> lua.c:67:31: fatal error: readline/readline.h: No such file or directory
> compilation terminated.

This isn't a mysql-proxy question, but a lua one. You may get better help using the Lua channels and
mailing-lists.

Let's see if I can help:

  http://packages.ubuntu.com/search?searchon=contents&keywords=readline%2Freadline.h&mode=exactfilename&suite=oneiric&arch=any

lists:

  http://packages.ubuntu.com/oneiric/libreadline6-dev

as provider of that file. You should install it and try again.

Jan

ngochoaian (trangiangnb) said : #2

Thanks Jan Kneschke, that solved my question.