当前位置: 首页 > 工具软件 > DocBook XSL > 使用案例 >

ubuntu install xsltproc docbook-xsl docbook-xml

郭弘盛
2023-12-01

问题一:

$ make
xsltproc --output phtml/ param.xsl ./pxml/mainbook.xml
make: xsltproc: Command not found
make: *** [all] Error 127

问题二:

$ make

xsltproc --output phtml/ param.xsl ./pxml/mainbook.xml

warning: failed to load external entity "/usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml/chunk.xsl"
compilation error: file param.xsl line 3 element import
xsl:import : unable to load /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml/chunk.xsl
make: *** [all] Error 5

 

解决办法

$ ll /usr/share/xml

total 24
drwxr-xr-x 6 root root 4096 Jan 23 15:29 ./
drwxr-xr-x 85 root root 4096 Jun 19 14:11 ../
drwxr-xr-x 2 root root 4096 Nov 8 2012 declaration/
drwxr-xr-x 2 root root 4096 Nov 8 2012 entities/
drwxr-xr-x 2 root root 4096 Nov 8 2012 misc/
drwxr-xr-x 3 root root 4096 Jan 23 15:29 schema/

$sudo apt-get install xsltproc docbook-xsl docbook-xml

$ ll /usr/share/xml
total 36
drwxr-xr-x 9 root root 4096 Jun 24 16:18 ./
drwxr-xr-x 86 root root 4096 Jun 24 16:18 ../
drwxr-xr-x 2 root root 4096 Jun 24 16:18 declaration/
drwxr-xr-x 4 root root 4096 Jun 24 16:18 docbook/
drwxr-xr-x 3 root root 4096 Jun 24 16:18 entities/
drwxr-xr-x 2 root root 4096 Nov 8 2012 misc/
drwxr-xr-x 2 root root 4096 Jun 24 16:18 qaml/
drwxr-xr-x 3 root root 4096 Jan 23 15:29 schema/
drwxr-xr-x 2 root root 4096 Jun 24 16:18 svg/

 参考链接:http://www.boost.org/doc/libs/1_40_0/doc/html/quickbook/install.html

转载于:https://www.cnblogs.com/tangkaixin/p/4598016.html

 类似资料: