lua-users home
lua-l archive

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

I built Lua on a fresh Ubuntu 12.04 install recently. IIRC, I had to install the ncurses dev package after I installed the readline dev package. I hope this is helpful!

On Dec 26, 2012 2:03 PM, "Luiz Henrique de Figueiredo" <> wrote:
A question in stackoverflow [1] says that building Lua in (I assume)
plain Ubuntu-12.04 fails:

% make linux test
gcc -o lua   lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lncurses
/usr/bin/ld: cannot find -lncurses

Since it is not complaining about -lreadline, what does readline depend
on in Ubuntu-12.04, if anything? Does anyone have a pristine Ubuntu-12.04
to try this on?

Readline questions when building Lua are common. The README in Lua 5.2 [2]
says "If you're running Linux and get compilation errors, make sure you
have installed the readline development package.", which we hope is
still the correct advice, but we'd like to make it easier, if possible.

Any suggestions?