LoginSignup
0
1

More than 5 years have passed since last update.

gitをソースコードからインストールしたメモ

Posted at

古いサーバに入ったら git が古くて GIT_SSH_COMMAND 環境変数が使えず不便なので、ソースコードから git を入れた。curl のソースが必要だったので curl も入れた。

curl https://curl.haxx.se/download/curl-7.61.1.tar.bz2 | bunzip2 | tar xvf -
cd curl-7.61.1
./configure --prefix=/home/me/local
make install
~/local/bin/curl -V

curl 7.61.1 が入った。

curl -o git-master.zip https://codeload.github.com/git/git/zip/master
unzip git-master.zip
cd git-master
make configure
./configure --prefix=/home/me/local
make -i install
~/local/bin/git --version

git version 2.19.GIT が入った。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1