Reprint----on MAC to build Lua

Source: Internet
Author: User
Tags lua

build lua on MAC

In fact, on the Mac to build the LUA environment, Google on a lot of information, I just integrated, because the younger brother did encounter some problems when building.
Download and install Lua: (turn from here) 1. Download the latest version of lua-5.2.0 Click, then unzip
2. Run "terminal" into the folder, mainly CD "folder name" 3. In terminal, enter make MacOSX (enter)
4. In "terminal" input make test (carriage return)
Normally it will appear: src/lua-v
Lua 5.2.0 Copyright (C) 1994-2011 Lua.org,puc-rio
5. Then enter the "sudo make install" command, you will be asked to enter password: Enter the appropriate password (your password), and then enter the automatic installation
After the installation is complete can enter LUA-V, enter will see: Lua 5.2.0 Copyright (C) 1994-2011 lua.org, Puc-riook, has been installed successfully! IDE: Use sublime text2,google here to run the script: Sublime text2 above: input: {"cmd": ["/usr/local/bin/lua", "$file"], "File_regex": " ^(...*?):( [0-9]*):? ([0-9]*) "," selector ":" Source.lua "} is saved as Lua.sublime-build, and then the Tools-build system can 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's editing and running environment has been set up to create a new Xxx.lua file, write a statement, choose LUA as the build system, click on the Flower +b, can run out. At this point, the novice learns Lua's environment to build up

Reprint----on MAC to build Lua

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.