Skip to content

Latest commit

 

History

History
50 lines (25 loc) · 1.51 KB

File metadata and controls

50 lines (25 loc) · 1.51 KB

LUA

An ongoing complete list of solutions, all lua exercises in the official Lua Documentation... Not yet complete tho! :)

If you're new to lua;

  1. Android Users: You can use an online lua compiler eg Online Lua Compiler OR Use Termux(recommended). You can download termux from F-droid or their official Github Page

  2. Linux(Debian) Users: All our exercises were done with lua 5.3, you can easily install lua 5.3 or any later version with

     sudo apt install lua5.3
    

    OR follow this Guide

    For any other Linux Distro, follow this Guide

  3. Windows Users: Overall, Installing lua ( > 5.3) on windows, is the most tricky, but if you follow up the tutorials keenly, it won't be a drag! Lua Windows

  4. For MacOS Users:

Take Lua 5.3 as example:

Open your Terminal app

wget http://www.lua.org/ftp/lua-5.4.6.tar.gz      


tar xvzf lua-5.4.6.tar.gz


cd lua-5.4.6/src

make macosx(I believe you have Xcode installed)

After that, you can see 'lua' binaries under the current dir.

  sudo mkdir /usr/bin/lua
  

  sudo cp .* /usr/bin/lua
  

  lua -v --> Lua Version

Now you can run our codes have fun. :)