MAC builds LUA runtime environment

Source: Internet
Author: User
Tags install brew lua sublime text

To download Lua First, you can use the command under the Terminal: Brew Install LUA (you need to install brew first);

Then download install sublime Text 2, open tools-build system-New build system, enter in edit area:

{"cmd": ["/usr/local/bin/lua", "$file"], "File_regex": "^ (... *):( [0-9]*):? ([0-9]*) "," selector ":" Source.lua "}

Then save as Luabuild.sublime-build. Close, reopen, create a new file Test.lua, enter print ("Jacedy"), press COMMAND + B to compile.

Next, install the package control plug-in. Open Sublime text, press CTRL + ' bring up the command line, enter:

Import Urllib2,os; Pf= ' Package control.sublime-package '; Ipp=sublime.installed_packages_path (); Os.makedirs (IPP) if not os.path.exists (IPP) else None; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ())); Open (Os.path.join (IPP,PF), ' WB '). Write (Urllib2.urlopen (' http://sublime.wbond.net/' +pf.replace (', '%20 '). Read () ); print ' Restart Sublime Text to finish installation '

Enter the direct installation to complete. Can be called through the Command+shift+p plug-in, enter the install can download their own required plug-in, you can input LUA and other LUA-related plug-ins, such as: Lua Dev

MAC builds LUA runtime environment

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.