LoginSignup
1
2

More than 5 years have passed since last update.

Vagrantでのgitのバージョンを更新する

Last updated at Posted at 2018-11-28

はじめに

dotinstallでwindowsの環境構築をするとgitのバージョンが1.7.1になってしまうので
gitのバージョンを更新するため自分用メモ

gitのバージョンを更新するコマンド

$ sudo yum remove git
$ sudo yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
$ cd /usr/local/src/
$ sudo wget https://www.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
$ sudo tar xzvf git-2.9.5.tar.gz
$ cd git-2.9.5/

ここまでは問題なく実行できたが、以下二つのコードを書いた際にエラーが発生。

$ sudo make prefix=/usr/local all
$ sudo make prefix=/usr/local install

なので、以下を実行すれば解決しました。

$ sudo yum install perl-ExtUtils-MakeMaker

これでgit --versionを確認するとバージョンが更新されている。

参考記事

1
2
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
1
2