Install LUA Editor on Debian

Source: Internet
Author: User
Tags debian server

installing Lua on a Debian server

1) Download the compressed package

wget http://www.lua.org/ftp/lua-5.1.4.tar.gz

2) Unzip the file

Tar zxvf lua-5.1.4.tar.gz

3) installation files

CD lua-5.1.4

Make Linux

Error encountered at this time:

"luaconf.h:276:30:fatal error:readline/history.h: There is no file or directory #include <readline/history.h >",

Workaround: Comment out can not, Baidu a bit, get need to install ReadLine

Download readline-6.3.tar.gz

wget http://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz

Decompression: tar zxvf readline-6.3.tar.gz

CD readline-6.3

./configure

Make

Make install

At this point,readline has been installed.

Re-enter the Lua directory to install Lua.

CD lua-5.1.4

Make Linux

Make Linux Install

4) test whether the installation was successful.

Lua-v

[Email protected]:/var/lua# lua-v
Lua 5.1.4 Copyright (C) 1994-2008 lua.org, Puc-rio

Indicates that LUA has been installed successfully.

Install LUA Editor on Debian

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.