lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, 7 Jun 2010 12:04:09 +0200
Valerio Schiavoni <valerio.schiavoni@gmail.com> wrote:

> Hello,
> trying to compile lua 5.1.4 on a clean ubuntu 64 bit installation, I
> get the following error.
> Ideas?

> gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lua.o lua.c
> In file included from lua.h:16,
>                  from lua.c:15:
> luaconf.h:275:31: error: readline/readline.h: No such file or
> directory luaconf.h:276:30: error: readline/history.h: No such file

Either apt-get install libreadline-dev, use "make ansi", or use Ubuntu's
binary packages, with apt-get install lua5.1

(If you want development packages, liblua5.1-0-dev.  There are other
packages there too, including docs and lots of common Lua modules.)

B.