Build Lua on MAC

Source: Internet
Author: User
Tags lua


Download and install Lua: (turn fromHere1. Download the latest version of Lua-5.3.1.tar.gzPlease click (http://www.lua.org/ftp/), then unzip
2. Execute "terminal" to enter this directory, mainly CD "directory name"3. In "terminal" Enter make MacOSX (carriage return)
4. In "terminal" input make test (carriage return)
normally it will appear: Src/lua-v
Lua 5.3.1 Copyright (C) 1994-2015 Lua.org,puc-rio
5. Then enter the "sudo make install" command, and you will be asked to enter password: Enter the corresponding password (your password). And then enter it and install it yourself.
after the installation is complete, you can enter Lua-v, enter will see: Lua 5.3.1 Copyright (C) 1994-2015 lua.org, Puc-riook, has been successfully installed!


IDE: Use sublime text2 here. Google is a bunch of
Execute script: Sublime text2 above Select:  input: {   "cmd": ["/usr/local/bin/lua", "$file"],    " File_regex ":" ^ (... *):( [0-9]*):? ([0-9]*) ",   " selector ":" Source.lua " }   Save As Lua.sublime-build, then Tools-build The system will be able to choose Lua to compile the script (such as) PS: Most of the online find is "cmd": ["Lua", "$file"] Maybe I'm using makefile to install LUA, I need to change the path lua the editing and execution environment has been set up
Create a new Xxx.lua file. Write a statement at random. Select Lua as the build system. Click on the flower +b, you can run out.   At this point, this novice learns Lua's environment to build up Lua on

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.