Skip to content

Instantly share code, notes, and snippets.

@seveas
Created April 5, 2018 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save seveas/6a00d20aa40f9ca677c96eb44a6c5140 to your computer and use it in GitHub Desktop.
Save seveas/6a00d20aa40f9ca677c96eb44a6c5140 to your computer and use it in GitHub Desktop.
Git builder
set -x
set -e
export LD_LIBRARY_PATH=~/git-test-inst/lib
mkdir git-test
cd git-test/
wget https://dl.uxnr.de/mirror/curl/curl-7.59.0.tar.gz
wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
wget https://github.com/git/git/archive/v2.16.3.tar.gz
mv v2.16.3 git-2.16.3.tar.gz
tar -xf openssl-1.1.0h.tar.gz
cd openssl-1.1.0h
./config --prefix=/home/dkaarsemaker/git-test-inst
make -j16
make -j16 install
cd ../
tar xf curl-7.59.0.tar.gz
cd curl-7.59.0
./configure --with-ssl=/home/dkaarsemaker/git-test-inst/ --prefix=/home/dkaarsemaker/git-test-inst/
make -j16
make install
ldd ~/git-test-inst/lib/libcurl.so.4.5.0
cd ..
tar xf git-2.16.3.tar.gz
cd git-2.16.3
make configure
./configure --prefix=/home/dkaarsemaker/git-test-inst/ --with-openssl=/home/dkaarsemaker/git-test-inst/ --with-curl=/home/dkaarsemaker/git-test-inst/
make -j16
make install
ldd ~/git-test-inst/libexec/git-core/git-remote-https
cd ..
~/git-test-inst/bin/git clone https://github.com/github/debug-repo
@Jecvay
Copy link

Jecvay commented Dec 11, 2018

ldd: /home/liujiewei/git-test-inst/libexec/git-core/git-remote-https: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment