~ashn/setup

ref: 8e2f93a7f7c6b0120c138b8ccb00f04f531613b7 setup/optional/setup-lua.sh -rwxr-xr-x 382 bytes
8e2f93a7ashn Add l1 alias to .shrc 1 year, 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
[ "$(id -u)" != "0" ] && echo 'MUST RUN AS ROOT' && exit 1

apt-get -y install lua5.3
apt-get -y install liblua5.3-dev
#apt-get -y install luajit

LUAROCKS=luarocks-3.3.0

wget "https://luarocks.org/releases/${LUAROCKS}.tar.gz"
tar zxpf "${LUAROCKS}.tar.gz"
cd "${LUAROCKS}"
./configure && make && sudo make install
cd ..

rm -rf "${LUAROCKS}"
rm -rf "${LUAROCKS}.tar.gz"