Ubuntuのバージョン上げるのはめんどくさいけどgitgのバージョンだけ上げたい時。
apt-getでは0.2.4が最新なのでソースからインストール。
wget https://git.gnome.org/browse/gitg/snapshot/gitg-0.2.7.tar.xz
tar xf gitg-0.2.7.tar.xz
cd gitg-0.2.7/
./autogen.sh
./configure
make
sudo make install
途中
./configure: line 14559: syntax error near unexpected token
maximum'
GNOME_COMPILE_WARNINGS(maximum)'
./configure: line 14559:
が出たら、gnome-commonを入れる
sudo apt-get install gnome-common
自分の環境ではgnome-commonをインストール→アンインストール→インストールすると動いた。
起動時に
gitg: error while loading shared libraries: libgitg-1.0.so.0: cannot open shared object file: No such file or directory
のエラーが出たら
sudo ldconfig
本当は0.3系を入れたいけど現状はこれで我慢。