2015-08-27 git をインストール

CentOS Linux release 7.1.1503 (Core) 

[]yum で提供されているgitのバージョンを調べる。 08:04

yum info git


Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: centos.hostingxtreme.com

* extras: lug.mtu.edu

* updates: centos.mirrors.tds.net

Available Packages

Name : git

Arch : x86_64

Version :

Release : 4.el7

Size : 4.3 M

Repo : base/7/x86_64

Summary : Fast Version Control System

URL : http://git-scm.com/

License : GPLv2

Description : Git is a fast, scalable, distributed revision control system with an

: unusually rich command set that provides both high-level operations

: and full access to internals.


: The git rpm installs the core tools with minimal dependencies. To

: install all git packages, including tools for integrating with other

: SCMs, install the git-all meta-package.


[]autoconfのインストール 14:42

git をmake する時に必要との事

sudo yum install autoconf

※自前でビルドする時の参考 : http://tetsuyai.hatenablog.com/entry/20110216/1297939037

[]gccのインストール 16:24


sudo yum install gcc

[]perl ExtUtils MakeMaker 16:53

git を make する時に

Can't locate ExtUtils/MakeMaker.pm


sudo yum install perl-ExtUtils-MakeMaker

※参考 : http://katzplus.com/centos-6/namazu/cant-locate-extutilsmakemaker-pm/

[]docbook2x-texi コマンドのインストール 08:09

git を make する時に

/bin/sh: line 1: docbook2x-texi: command not found


sudo yum install --enablerepo=epel docbook2X docbook-utils
sudo ln -s /bin/db2x_docbook2texi /bin/docbook2x-texi


※参考 : http://www.server-memo.net/memo/github/github-install.html

[]gitのインストール 08:23

mkdir ~/zzzz
cd ~/zzzz
curl -o git-2.5.0.tar.gz https://www.kernel.org/pub/software/scm/git/git-2.5.0.tar.gz
tar zxvf git-2.5.0.tar.gz
cd git-2.5.0
sudo yum install curl-devel expat-devel gettext-developenssl-devel zlib-devel
sudo yum install asciidoc xmlto docbook2x
make configure
./configure --prefix=/usr
make all doc info
sudo make install install-doc install-html install-info

※参考資料 : https://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-from-Source