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

September 30th, 2015 by thelinuxevangelist

Lua QuickStart for Lubuntu 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 Lubuntu 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 Lubuntu 15.10 Wily Linux - Featured
  1. Open a Shell Terminal emulator window
    Ctr+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    LUA QuickStart for Lubuntu Linux - Featured

  2. Installing LUA 5.x on Lubuntu

    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
Share on Tumblr

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

Comments are disabled