Skip to content

Instantly share code, notes, and snippets.

@keeth
Last active April 6, 2016 02:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keeth/a58afe01b31f431aa878 to your computer and use it in GitHub Desktop.
Save keeth/a58afe01b31f431aa878 to your computer and use it in GitHub Desktop.
Install pygit2 0.22.0 on a minimal Ubuntu Trusty
apt-get install -y pkg-config python-pip git libssl-dev zlib1g-dev cmake python-dev libffi-dev libssh2-1-dev
git clone https://github.com/libgit2/libgit2 \
&& cd libgit2 \
&& git checkout tags/v0.22.0 \
&& mkdir build \
&& cd build \
&& cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
&& cmake --build . --target install \
&& cd ../..
git clone https://github.com/libgit2/pygit2 \
&& cd pygit2 \
&& git checkout tags/v0.22.0 \
&& python setup.py install \
&& cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment