How-to QuickStart with LUA 5 on Linux Mint 17.2 Rafaela

October 1st, 2015 by thelinuxevangelist

Lua QuickStart for Linux Mint

The Linux Tutorial Shows You Step-by-Step How-to Install and Getting-Started with LUA 5.x Programming via the Apt Package Manager on Linux Mint 17.2 Rafaela i386/amd64 Mate/Cinnamon/Xfce/KDE GNU/Linux Desktop.

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics.

Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

LUA QuickStart for Linux Mint 17.2 Rafaela - Featured
  1. Open a Shell Terminal window
    (Press “Enter” to Execute Commands)

    Lua QuickStart for Linux Mint - Open Terminal

  2. Installing LUA 5.x on Linux Mint

    For LUA 5.3:

    sudo apt-get install lua5.3

    For LUA 5.2:

    sudo apt-get install lua5.2

    For LUA 5.0:

    sudo apt-get install lua50

    If Got “User is Not in Sudoers file” then Look: Solution
    Testing installation:

    which lua

  3. Executing LUA Hello-World Example

    mkdir ~/Documents/lua
    cd ~/Documents/lua
    nano hello.lua


    Print("Hello World!")

    Ctrl+x to Save & Exit from nano editor :)
    To Run the LUA Hello-World script:

    lua hello.lua

    You’ll be Greeted with an: “Hello World!”

  4. Official LUA Docs onLine Tutorials:

    LUA Tutorial Directory
(Visited 1 times, 1 visits today)
Share on Tumblr

Tags: , , , , , , , , , , , , , , , , , , ,

Comments are disabled