centos 安装 mercurial,出现:Python headers are requi...

centos 安装 mercurial,出现:Python headers are required to build Mercurial

查了官方的说明还有一些英文的文章,说明实际上是mercurial需要python的c头文件,centos中默认没装(我用的是wdlinux的精简版),需要使用下面的命令:

yum -y install python-devel

make的时候出错,提示以下内容:

python runrst hgmanpage  --halt warning \
          --strip-elements-with-class htmlonly hg.1.txt hg.1
abort: couldn't generate documentation: docutils module is missing

需要先安装docutils
# wget http://prdownloads.sourceforge.net/docutils/docutils-0.7.tar.gz?download
# tar -zxf docutils-0.7.tar.gz
# cd docutils-0.7
# python setup.py install


你可能感兴趣的:(centos 安装 mercurial,出现:Python headers are requi...)