さくらインターネットのスタンダードにgit 1.7.4.2をインストールした
読了まで:約1分
概要: さくらインターネットに
ソースの取得
$ cd local/src
$ wget http://kernel.org/pub/software/scm/git/git-1.7.4.2.tar.bz2
$ tar zxvf git-1.7.4.2.tar.bz2
configure
$ cd git-1.7.4.2
$ ./configure --prefix=$HOME/local/git --with-curl=/usr/local
NOTE:
--with-curl
をgit
のconfigure
がlibcurl
を
多分だけど、/usr/local
に
コンパイルするためソースを修正
環境にもgit
の
具体的には、
sha1_file.c: In function 'open_packed_git_1':
sha1_file.c:718: error: storage size of 'lim' isn't known
sha1_file.c:721: warning: implicit declaration of function 'getrlimit'
sha1_file.c:721: error: 'RLIMIT_NOFILE' undeclared (first use in this function)
sha1_file.c:718: warning: unused variable 'lim'
と
それで、storage size of 'lim' isn't known
- [[git - [PATCH]] Include headers for getrlimit() in sha1_file.c http://git.661346.n2.nabble.com/PATCH-Include-headers-for-getrlimit-in-sha1-file-c-td6175992.html]
と
具体的には、
code:_ diff --git a/git-compat-util.h b/git-compat-util.h index 49b50ee..40498b3 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -118,6 +118,7 @@ #endif #ifndef MINGW32 #include <sys/wait.h> +#include <sys/resource.h>
と
コンパイル
git
のMakefile
は、make
ではgmake
を
$ gmake
$ gmake install
以上
これで
メモは
#FIXME