Skip to content

Instantly share code, notes, and snippets.

@grenade
Created August 23, 2013 10:35
Show Gist options
  • Select an option

  • Save grenade/6317879 to your computer and use it in GitHub Desktop.

Select an option

Save grenade/6317879 to your computer and use it in GitHub Desktop.
Build and install pygit2 (with libgit2) on Fedora / RedHat
sudo yum install cmake openssl-devel pyOpenSSL http-parser-devel python-http-parser
git clone -b master https://github.com/libgit2/libgit2.git ~/git/github.com/libgit2/libgit2
mkdir ~/git/github.com/libgit2/libgit2/build
cd ~/git/github.com/libgit2/libgit2/build
cmake ..
cmake --build .
sudo cmake --build . --target install
git clone https://github.com/libgit2/pygit2.git ~/git/github.com/libgit2/pygit2
cd ~/git/github.com/libgit2/pygit2
export LIBGIT2="/usr/local"
export LDFLAGS="-Wl,-rpath='$LIBGIT2/lib',--enable-new-dtags $LDFLAGS"
python setup.py build
sudo python setup.py install
python setup.py test
@mancier
Copy link
Copy Markdown

mancier commented Mar 24, 2023

GOD BLESSES YOU MAN!!!

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