Ubuntu14.04 Lua Study Notes

Source: Internet
Author: User
As Lua becomes more mature, its applications in servers become wider and wider. I also want to develop in this area, so I began to learn Lua. To learn a new language, you should first compile, install, and deploy the development and debugging environment, and then practice... however, I don't have a project to do now. I just want to familiarize myself with the lua syntax first, and it doesn't have to be so complicated. So I began to find a simple luaIDE. Select ZeroBraneStudio because it is small and can be debugged in a single step. In addition, there are not so many

As Lua becomes more mature, its applications in servers become wider and wider. I also want to develop in this area, so I began to learn Lua.

To learn a new language, you should first compile, install, and deploy the development and debugging environment, and then practice... however, I don't have a project to do now. I just want to familiarize myself with the lua syntax first, and it doesn't have to be so complicated. So I began to find a simple lua IDE. Select ZeroBrane Studio because it is small and can be debugged in a single step. In addition, there are not so many choices in linux. I don't want to use sublime text to write xxx. lua at the beginning and then execute lua xxx. lua in shell.

ZeroBrane Studio is free and open-source, but if it is used for work and conditional, you can also pay for it. Download the installation package at http://studio.zerobrane.com. In Ubuntu 14.04 Linux, the installation package is a ZeroBraneStudioEduPack-1.00-linux.sh and runs the installation directly.

If it succeeds, search for Zero in Dash to see ZeroBrane Studio.

ZeroBrane Studio, as a lightweight IDE, is very good. At least it is used to learn how to deploy the environment, debug it in one step, and view the stack...

ZeroBrane Studio comes with compiled lua binary files, which is why lua may be run and debugged even if it is not installed in the system. The installed file is in opt/zbstudio. You can see in/opt/zbstudio/bin/linux/x64 that there are three lua Resolvers: lua, lua52, and lua53, it indicates that ZBS supports these three versions and can be selected from the menu Project/lua interpreter. You can set font, tab indent, highlight, and shortcut keys in Edit/Preferences. If you have installed lua, you can also specify your own lua path here. But this is a lua configuration file. Refer to its documentation.

As an affiliated script, lua rarely runs independently. Therefore, as a project developer, ZBS obviously does not provide the lua library, at least the header file does not. I have not tested whether ZBS can debug other projects like decode.

Lua Language 15 minutes Quick Start http://www.linuxidc.com/Linux/2013-06/86582.htm

Lua programming (2nd) Chinese PDF http://www.linuxidc.com/Linux/2013-03/81833.htm

Lua programming (second edition) Reading Notes http://www.linuxidc.com/Linux/2013-03/81834.htm

NetBSD will support the development of kernel component http://www.linuxidc.com/Linux/2013-02/79527.htm with Lua script

CentOS compilation and installation Lua LuaSocket http://www.linuxidc.com/Linux/2011-08/41105.htm

Lua details: Click here
Lua's: Click here

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-04/115756.htm

Related Article

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.