gdillen
Posts: 18
Joined: Sat Feb 01, 2014 11:36 am

Lua install

Sun Mar 16, 2014 11:44 am

Hi,

I would like a little bit experimenting with Lua on my Pi. Anyone can me give an intro as how to install it on the Pi?

Thanks.

ripat
Posts: 191
Joined: Tue Jul 31, 2012 11:51 am
Location: Belgium

Re: Lua install

Sun Mar 16, 2014 12:03 pm

For the basic package:

Code: Select all

$ sudo apt-get install lua5.1
I would also recommend lua-socket amongst all the available lua librairies
Last edited by ripat on Sun Mar 16, 2014 12:14 pm, edited 1 time in total.
Using Linux command line usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Lua install

Sun Mar 16, 2014 12:08 pm

On Raspbian
sudo apt-get install lua
should get version 5
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

gdillen
Posts: 18
Joined: Sat Feb 01, 2014 11:36 am

Re: Lua install

Sun Mar 16, 2014 1:16 pm

Many thanks for the answers / info.

mob-i-l
Posts: 315
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

Re: Lua install

Wed Mar 19, 2014 7:47 pm

Lua is already installed in Raspbian and probably can't be uninstalled to save space since it is used by RaspiConfig, try this in LXTerminal:
$

Code: Select all

grep lua  $(which raspi-config)
lua
The first line outputs:
lua - "$1" "$2" "$3" <<EOF > "$3.bak"
lua - "$1" "$2" <<EOF

The last line outputs: "Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio".

I think Lua could be replaced by Sed or Perl in Raspi-config and then Lua could be removed to save space.
Have Pi0&1A&1B&1B+&2B&3B&4B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… https://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://twitter.com/mobluse/ https://YouTube.com/MOBiL4u/

Return to “Other programming languages”