How-to QuickStart with LUA 5 on Ubuntu 15.10 Wily Linux+GNU

September 30th, 2015 by thelinuxevangelist

Lua QuickStart for Ubuntu Linux

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 Ubuntu 15.10 Wily Werewolf i386/amd64 GNU/Linux Desktop/Server.

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 Ubuntu 15.10 Wily Linux - Featured
  1. Open a Shell session
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    LUA QuickStart for Ubuntu Linux - Featured

  2. Installing LUA 5.x on Ubuntu

    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

    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 3 times, 1 visits today)
Share on Tumblr

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

Comments are disabled