How LUA is installed on MacOS Systems

Source: Internet
Author: User
Tags lua

Lua is a very small scripting language, written by standard C, that makes it easy to call C + + or C + +. In addition, there is a Luajit, which is a compiler for LUA on some platforms.

We are only installing LUA here.

1. Detect if LUA is installed on your computer

In Terminal input:

Login  - at:  ttys000zfydemacbook-pro:~5.3. 3  1994- lua.org, puc-Rio

Because LUA is installed on my computer, the version number is displayed successfully. If it is not installed, it will prompt "command not found".

2. Go to Lua's official website to download the latest packaged code in tar.gz format

Http://www.lua.org/download.html

3.make Develop system and install

 Make MacOSX sudo  Make Install

4. Test whether the installation is successful or not and the version number is correct

Login  - at:  ttys000zfydemacbook-pro:~5.3. 3  1994lua.org , puc-Rio> message = ['HelloWorld'  ]]> print (message)'HelloWorld'

5. View the LUA directory:

which Lua/usr/local/bin/lua

How LUA is installed on MacOS Systems

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.