Created
April 17, 2017 03:20
-
-
Save josellausas/ebda78895289298b0ffa4daaec57b198 to your computer and use it in GitHub Desktop.
Install Lapis on Raspberry Pi 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This installs Leafo's Lapis (http://leafo.net/lapis/) on Raspberry Pi 3 | |
sudo apt-get update &&\ | |
sudo apt-get upgrade &&\ | |
sudo apt-get install nginx postgresql lua luajit libpq-dev &&\ | |
sudo apt-get install libpcre3 libpcre3-dev libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential curl &&\ | |
sudo apt-get update &&\ | |
# Install Openresty | |
mkdir openresty &&\ | |
cd openresty &&\ | |
wget https://openresty.org/download/openresty-1.11.2.2.tar.gz &&\ | |
tar -xvf openresty-1.11.2.2.tar.gz &&\ | |
cd openresty-1.11.2.2/ &&\ | |
./configure -j2 --with-http_postgres_module --with-pcre-jit --with-luajit --with-http_realip_module &&\ | |
sudo make &&\ | |
sudo make install &&\ | |
# Install Luarocks and Lapis | |
wget https://luarocks.org/releases/luarocks-2.4.1.tar.gz &&\ | |
tar zxpf luarocks-2.4.1.tar.gz &&\ | |
cd luarocks-2.4.1 &&\ | |
./configure; sudo make bootstrap &&\ | |
sudo luarocks install luasocket &&\ | |
sudo luarocks install moonscript &&\ | |
sudo luarocks install lapis &&\ | |
echo "\n\n====Done====\n\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment