Setup of LUA Sublime TEXT2 development environment under Mac

Source: Internet
Author: User
Tags lua sublime text
1. Installing the LUA Compiler
  1. Download Lua, http://www.lua.org/;
  2. After extracting the CD into the folder src directory
  3. Execute make MacOSX in the current folder and enter
  4. CD to previous directory, execute sudo make install
  5. Execute lua-v After completion can be seen: Lua 5.3.3 Copyright (C) 1994-2016 lua.org, Puc-rio
2. Install Sublime Text2

  

1. Open after downloading http://sublime-text-2.cn.uptodown.com;

{

"cmd": ["/usr/local/bin/lua", "$file"],

"File_regex": "^ (... *):( [0-9]*):? ([0-9]*) ",

"Selector": "Source.lua"

}

2. Save As Lua.sublime-build, then restart sublime Text 23.ctrl+n new file, enter print ("Hello World") to save to the English path directory 4. Then ctrl+b start compiling, successfully output Hello World

Setup of LUA Sublime TEXT2 development environment under Mac

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.