[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: Stefan Reich <info@...>
- Date: Mon, 04 Mar 2013 17:53:08 +0100
On 2013-03-04 02:51, Luiz Henrique de Figueiredo wrote:
wget
http://sourceforge.net/projects/safelua/files/lua-base/lua-5.2.1.tar.gz/download
You should get the source from lua.org.
You mean the Brazilians' server? Why would I do that? I trust my own
server. It has the file I want.
I don't trust the Brazilians; they tried to hurt me before.
It's a Free Internet. I can choose my servers. Right?
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.
Why wouuld you do that? They make new versions (e.g. 5.2) incompatible
with older ones (e.g. 5.1).
#!/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
Well OK that's just about the same as mine... just not as friendly with
the user in terms of helpful output :)
Let's really work together to make a smart Lua installer / program
runner. It's doable, not that much work and will be a very useful thing
to have. As a name, I propose "smartlua". Any objections? :)
Cheers,
Stefan