Location of sphinx-build on CentOS

那年仲夏 提交于 2019-12-22 12:37:26

问题


I have a brand new CentOS 6 box and wanted to install sphinx, in order to compile documents as generated by readthedocs.org i.e. rst files.

In a previous ubuntu box I was running

make html

and that would invoke the

sphinx-build

command and compile the documentation.

I downloaded the latest version of sphinx and installed it as such:

sudo wget http://sphinxsearch.com/files/sphinx-2.1.9-1.rhel6.x86_64.rpm
sudo localinstall sphinx-2.1.9-1.rhel6.x86_64.rpm 

Everything seems to be fine but sphinx-build is nowhere to be found.

Any pointers are more than appreciated.


回答1:


You are mixing up two different tools named Sphinx: the full text search server (http://sphinxsearch.com/) and the documentaton generator (http://sphinx-doc.org/). You need the latter tool in order to compile documents usingsphinx-build.




回答2:


You can also install rpm package of sphinx (Python documentation generator) with yum at CentOS 6 using:

yum install python-sphinx.noarch

at Fedora 20 using:

yum install python-sphinx-doc.noarch



回答3:


A short addup, according to offical document, one just need to run pip install Sphinx to install the python documentation generator, sphinx. Or it can be downloaded from distribution package.



来源:https://stackoverflow.com/questions/24582037/location-of-sphinx-build-on-centos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!