Created
December 11, 2017 10:16
-
-
Save killtw/fd226e630ab7ed927b8ad657408732a4 to your computer and use it in GitHub Desktop.
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
# Preparing | |
sudo apt-get update -yqq | |
sudo apt-get upgrade -yqq | |
sudo apt-get install build-essential curl git ruby libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev -yqq | |
# Install LinuxBrew | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" | |
# Config | |
echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >>~/.profile | |
echo 'export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' >>~/.profile | |
echo 'export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"' >>~/.profile | |
# Preparing for PHP | |
sudo ln -s /usr/bin/apxs /usr/sbin/apxs | |
sudo ln -s /usr/bin/apxs2 /usr/sbin/apxs2 | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ | |
sudo ln -s /usr/lib/x86_64-linux-gnu/liblber* /usr/lib/ | |
sudo apt-get install systemtap-sdt-dev libsasl2-dev libedit-dev zlib1g-dev libldap2-dev -yqq | |
# Install PHP 7.2 | |
brew tap homebrew/php | |
brew install php72 php72-pdo-pgsql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment