[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: getlua.sh - the fastest way to get a Lua interpreter on any Linux server
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 3 Mar 2013 22:51:20 -0300
> wget
> http://sourceforge.net/projects/safelua/files/lua-base/lua-5.2.1.tar.gz/download
You should get the source from lua.org.
The FAQ lists a similar set of commands;
http://www.lua.org/faq.html#1.1
However, a script would be better written with some variables. Here is what I use.
It lets you download any version of Lua, but defaults to the current one.
#!/bin/sh
V=5.2.1
L=lua-${1:-$V}
W=http://www.lua.org/ftp
T=$L.tar.gz
wget -N $W/$T
tar zxf $T
cd $L ; make linux test