markdown 在Ubuntu 16.04上安装pygit2

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在Ubuntu 16.04上安装pygit2相关的知识,希望对你有一定的参考价值。

## Download and build libgit2 ##

    cd ~/.local/src/
    git clone git://github.com/libgit2/libgit2.git 
    cd libgit2
    mkdir build && cd build
    cmake ..
    cmake --build .

If debugging, use the following cmake commands instead:

    cmake -DCMAKE_BUILD_TYPE=Debug ..
    cmake --build .

## Install libgit2 ##

    sudo cmake --build . --target install

This will install libgit2 in /usr/local. In my case, libgit2's install command did not call ldconfig, so I had to do it manually:

    sudo ldconfig

Confirm that libgit2 can be found:

    ldconfig -p | grep libgit
 
This should output the paths to libgit2.so.0 and libgit2.so.

At this point, you should be able to install pygit2. 

## Install pygit2 ##

    sudo -H pip install pygit2

以上是关于markdown 在Ubuntu 16.04上安装pygit2的主要内容,如果未能解决你的问题,请参考以下文章

markdown 在Ubuntu 16.04上安装pygit2

markdown 通过PPA在Ubuntu 16.04上安装Tor Browser

markdown 在Ubuntu 16.04服务器上安装Prometheus 2.x.

markdown 安装主题ubuntu 16.04

markdown Ubuntu 16.04安装Java8

markdown Ubuntu 16.04安装x11vnc