[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [bug?] No readline support in Lua 5.4 REPL
- From: Martin <dyngeccetor8@...>
- Date: Thu, 20 Aug 2020 01:02:34 +0200
Hello list,
I'm trying Lua 5.4.0 and can't get libreadline work in REPL mode.
Package "libreadline-dev" is installed. In Lua 5.3.5 REPL cursor
arrows works fine.
1. I'm installing Lua 5.4 as following:
--
#!/bin/bash
url="http://www.lua.org/ftp/lua-5.4.0.tar.gz"
cd /tmp
curl -R -O $url
tar zxf $(basename $url)
cd $(basename $url .tar.gz)
sudo make linux-readline install
--
1.1 Output is:
--
make[1]: Entering directory '/tmp/lua-5.4.0/src'
make all SYSCFLAGS="-DLUA_USE_LINUX -DLUA_USE_READLINE" SYSLIBS="-Wl,-E
-ldl -lreadline"
make[2]: Entering directory '/tmp/lua-5.4.0/src'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/lua-5.4.0/src'
make[1]: Leaving directory '/tmp/lua-5.4.0/src'
cd src && mkdir -p /usr/local/bin /usr/local/include /usr/local/lib
/usr/local/man/man1 /usr/local/share/lua/5.4 /usr/local/lib/lua/5.4
cd src && install -p -m 0755 lua luac /usr/local/bin
cd src && install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h lua.hpp
/usr/local/include
cd src && install -p -m 0644 liblua.a /usr/local/lib
cd doc && install -p -m 0644 lua.1 luac.1 /usr/local/man/man1
--
1.2 Test: type "lua", newline, any character, newline, press UP arrow:
--
Lua 5.4.0 Copyright (C) 1994-2020 Lua.org, PUC-Rio
> a
nil
> ^[[A
--
2. When I'm installing Lua 5.3 as following:
--
url="http://www.lua.org/ftp/lua-5.3.5.tar.gz"
cd /tmp
curl -R -O $url
tar zxf $(basename $url)
cd $(basename $url .tar.gz)
sudo make linux install
--
2.1 Output is:
--
cd src && make linux
make[1]: Entering directory '/tmp/lua-5.3.5/src'
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
make[2]: Entering directory '/tmp/lua-5.3.5/src'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/lua-5.3.5/src'
make[1]: Leaving directory '/tmp/lua-5.3.5/src'
cd src && mkdir -p /usr/local/bin /usr/local/include /usr/local/lib
/usr/local/man/man1 /usr/local/share/lua/5.3 /usr/local/lib/lua/5.3
cd src && install -p -m 0755 lua luac /usr/local/bin
cd src && install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h lua.hpp
/usr/local/include
cd src && install -p -m 0644 liblua.a /usr/local/lib
cd doc && install -p -m 0644 lua.1 luac.1 /usr/local/man/man1
--
2.2 Readline works as expected:
--
Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio
> a
nil
> a
--
3. `apt show libreadline-dev`
--
Package: libreadline-dev
Version: 7.0-3
Priority: optional
Section: libdevel
Source: readline
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Matthias Klose <doko@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 728 kB
Provides: libreadline6-dev
Depends: libreadline7 (= 7.0-3), libtinfo-dev, dpkg (>= 1.15.4) |
install-info
Suggests: readline-doc
Conflicts: libreadline-gplv2-dev, libreadline5-dev, libreadline6-dev
Supported: 5y
Download-Size: 133 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Description: GNU readline and history libraries, development files
The GNU readline library aids in the consistency of user interface
across discrete programs that need to provide a command line
interface.
.
The GNU history library provides a consistent user interface for
recalling lines of previously typed input.
.
This package contains development files.
--
4. `cat /etc/issue`
--
Linux Mint 19.3 Tricia \n \l
--
5. Do somebody have same problem?
-- Martin