How to install Lua on Mac OS X

Source: Internet
Author: User
  1. check whether the local machine has installed Lua on the Mac OS terminal.

 

Last login: Thu Jul 10 07:54:48 on ttys000keshans-Mac-mini:~ keshan$ lua-bash: lua: command not found

 

2. If there is no official Lua website to download the latest code in the tar.gz format

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

 

3. refer to pages 8, 9, 10, and 11 of this document.

Http://media.wiley.com/product_data/excerpt/71/04700691/0470069171.pdf

The main content is to specify the platform when making

The correct method is to specify MacOSX


make macosxsudo make install

 

 

4. Check whether the installation is successful and the version number is correct.

keshans-Mac-mini:lua-5.2.3 keshan$ luaLua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio> message = [[It‘s a test string]]> print(message)It‘s a test string> keshans-Mac-mini:lua-5.2.3 keshan$ lua -vLua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Riokeshans-Mac-mini:lua-5.2.3 keshan$ 

 

5. view the Lua directory

keshans-Mac-mini:lua-5.2.3 keshan$ which lua/usr/local/bin/lua

 

Done

Related Article

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.