Last active
July 25, 2017 06:51
-
-
Save ETiV/821cd357a6932b9cc7ba3f9e1a2da245 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
MAKEJOBS=$(cat /proc/cpuinfo | grep processor | wc -l) | |
# fix PATH priority, better set in .bashrc / .zshrc | |
export PATH=/usr/local/bin:$PATH | |
sudo yum update && \ | |
sudo yum groupinstall -y "Development Tools" && \ | |
sudo yum install -y gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel curl-devel | |
cd "${DIR}" && \ | |
curl -L https://www.kernel.org/pub/software/scm/git/git-2.13.3.tar.gz -o git-2.13.3.tar.gz && \ | |
tar xzf git-2.13.3.tar.gz && \ | |
cd git-2.13.3 && \ | |
make configure && \ | |
./configure --prefix=/usr/local --with-curl --with-expat && \ | |
sudo make -j${MAKEJOBS} install | |
# EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment