Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  wikifarm  Login

Git

How to build

OpenSSL

gitlibpfx=/dev/shm/libs
wget 'http://www.openssl.org/source/openssl-1.0.0f.tar.gz'
tar -xzf openssl-1.0.0f.tar.gz
cd openssl-1.0.0f
./config --prefix=$gitlibpfx shared threads zlib-dynamic
echo openssl; i=01; make &> make$i.log & tailf make$i.log
make install

Never use the "-jN" flag in make(1) invocation! It will corrupt the output binary.

Change $gitlibpfx according to your needs.

libcurl

wget 'http://curl.haxx.se/download/curl-7.23.1.tar.bz2'
tar -xjf curl-7.23.1.tar.bz2
./configure --prefix=$gitlibpfx --with-ssl=$gitlibpfx
echo libcurl; i=01; make -j48 &> make$i.log & tailf make$i.log
make install

Git itself

gitpfx=/dev/shm/git
export PATH=$PATH:$gitlibpfx/bin # for curl-config
wget 'http://git-core.googlecode.com/files/git-1.7.8.3.tar.gz'
cd git-1.7.8.3
make configure && ./configure --prefix=$gitpfx --with-{openssl,curl}=$gitlibpfx
echo git; i=01; make -j8 all &> make$i.log & tailf make$i.log
make install
export PATH=$PATH:$gitpfx/bin
which git

Git-svn ?? TODO

Tips

Last modified:2012/01/23 18:26:36
Keyword(s):
References:[PyPy]