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 decompression, CD into the folder src directory, modify makefile in MacOSX after a row to be MacOSX: $ (make) all mycflags= "-dlua_use_linux-arch i386" mylibs= "-arch i386-lreadline" Save exit.
  3. execute make MacOSX in the current folder and enter
  4. CD to previous directory, execute sudo make install
  5. after completing the execution lua-v can see: [python] view plain copy
    1. Lua 5.1. 4 Copyright (C) 1994 - - lua.org, Puc-rio
indicates a successful installation; 2. InstallationSublime 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") and save it to the English path directory4. Then ctrl+b start the compilation. You'll see
Note: Be sure to save in the English path, if saved in the Chinese path, the following exception appears: [Python]View Plain Copy
  1. Traceback (most recent):
  2. File "./sublime_plugin.py", line 337, in run_
  3.   file  "./exec.py" 130 in
  4. unicodeencodeerror:  ' ASCII ' in  position  - 37 : ORDINAL  not in + )   

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.