centos7如何安装pandoc

Posted 枫叶那个飘啊

tags:

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

1	Install stack
1.1	Add the appropriate source repository:
curl -sSL https://s3.amazonaws.com/download.fpcomplete.com/centos/7/fpco.repo | sudo tee /etc/yum.repos.d/fpco.repo
1.2	Install:
sudo yum -y install stack

2	fetch the development pandoc code by cloning the repository
git clone https://github.com/jgm/pandoc
cd pandoc
git submodule update --init   # to fetch the templates
3	install the dependency libs:zlib
sudo yum install zlib-devel
4	install pandoc
stack setup
stack install
5	wait….
6	Configure PATH
vi /etc/profile
At the end of the file, add “export PATH=/root/pandoc/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/bin:$PATH”

Source /etc/profile

  

 

以上是关于centos7如何安装pandoc的主要内容,如果未能解决你的问题,请参考以下文章

如何把 Markdown 文件转化为 PDF

使用 pandoc 进行文档转换(markdown转word)

如何把 Markdown 文件转化为 PDF

如何把 Markdown 文件转化为 PDF

如何使用 pandoc 包含来自 epub 模板的图像?

文件转换神器pandoc