Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
Installing Lua Interpreter
sudo apt-get install lua5.2
Make sure Lua Interpreter is installed on your system
Make sure Lua interpreter is installed on your system as shown below.
whereis lua
which lua
Create a Hello World Lua Program File
nano hello
Write a Hello World Lua Program
#!/usr/bin/lua
-- hello world lua program
print ("Hello World!")
Execute the Lua Program
lua hello
( or )
chmod u+x helloworld
./helloworld
Add Comment
Please, Sign In to add comment