Created
August 23, 2013 10:35
-
-
Save grenade/6317879 to your computer and use it in GitHub Desktop.
Build and install pygit2 (with libgit2) on Fedora / RedHat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GOD BLESSES YOU MAN!!!