LUA development environment construction under MAC system

Source: Internet
Author: User
Tags lua

One, LUA installation package download

Go to LUA official website lua.org Download the latest version of Lua-5.2.3.tar.zip, as shown in the arrows:


Second, installation Lua-5.2.3

Enter the download directory for Lua-5.2.3.tar.zip (my is below the Lua_dev folder under SSD disk), perform the following steps to install:





The installation process may have to enter the system permissions password, enter your password, return, and then you can install . This will allow the LUA to be installed directly

Down to the/usr/local/bin.


after the installation is complete, type in the terminal: lua-v after Enter, see:Lua 5.2.3 Copyright (C) 1994-2013 lua.org, Puc-rio

Here, LUA installs successfully!


Three, IDE configuration


I personally like to use the sublime Text2 editor.

Open Sublime Text2, Tools--build system--New build system ... Then enter:



The file is saved as Lua.sublime-build, and then tools---build System can see the LUA selection Interface (4), and the Lua is selected to compile the foot

This. The LUA editing environment is built. Figure:



Iv. Writing code tests

Create a new Xxx.lua file, write a LUA statement, and choose Lua as the build System.

Press the following: Windows logo key + B , then you can run up. as follows:


Ok! This is how the LUA environment is built. I'm sure you can finish it soon!





LUA development environment construction under MAC system

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.