Skip to content

Instantly share code, notes, and snippets.

@yyano
Last active December 30, 2017 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yyano/4e2afc4788660130c5b74503ed202ad8 to your computer and use it in GitHub Desktop.
Save yyano/4e2afc4788660130c5b74503ed202ad8 to your computer and use it in GitHub Desktop.
AWS EC2でgitをsorceをダウンロードして、makeする
sudo yum update
sudo yum groupinstall "Development Tools"
sudo yum install zlib-devel.x86_64
sudo yum install perl-ExtUtils-MakeMaker curl-devel expat-devel openssl-devel
wget https://www.kernel.org/pub/software/scm/git/git-2.15.1.tar.xz
tar Jxfv git-2.15.1.tar.xz
cd git-2.15.1
./configure --prefix=/tmp --with-openssl --with-expat --with-curl
make all
rm -rf /tmp/*
make install
cd
zip -r git-2.15.1.zip /tmp/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment