Kubuntu编译DiP电子书失败

本文记录了在开源项目DiP的中文版编译过程中遇到的一系列错误信息,包括样式表解析错误、命名空间未定义及文件加载失败等问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

开源项目地址:
http://openbookproject.googlecode.com/svn/trunk/DiP

编译中的错误信息:
jelly@jelly-kubuntu9:~/DiP$ ls                                                                                                                                                            
common    doc    en    index.html    prebuilt    readme.txt    zh-cn                                                                                                        
jelly@jelly-kubuntu9:~/DiP$ cd zh-cn/                                                                                                                                             
jelly@jelly-kubuntu9:~/DiP/zh-cn$ ls                                                                                                                                                
add_oa.sh    build.sh    build.xml    dist    export.sh    index.html    index.html?    make.bat    make.sh    xml                        
jelly@jelly-kubuntu9:~/DiP/zh-cn$ ./build.sh                                                                                                                                
Parsing stylesheet ../../common/xsl/html.xsl took 1 ms                                                                                                            
compilation error: file ../../common/xsl/html.xsl line 4 element stylesheet                                                                 
xsl:exclude-result-prefixes : undefined namespace #default                                                                                                    
../../common/docbook/xsl/html/synop.xsl:1022: parser error : Premature end of data in tag code line 1018        
                                                                                                                                                                                                                        
        ^                                                                                                                                                                                                             
../../common/docbook/xsl/html/synop.xsl:1022: parser error : Premature end of data in tag template line 1013
                                                                                                                                                                                                                        
        ^                                                                                                                                                                                                             
../../common/docbook/xsl/html/synop.xsl:1022: parser error : Premature end of data in tag stylesheet line 5 
                                                                                                                                                                                                                        
        ^                                                                                                                                                                                                             
compilation error: file ../../common/docbook/xsl/html/docbook.xsl line 62 element include                                     
xsl:include : unable to load ../../common/docbook/xsl/html/synop.xsl                                                                                
compilation error: file ../../common/xsl/htmlcommon.xsl line 4 element stylesheet                                                     
xsl:exclude-result-prefixes : undefined namespace #default                                                                                                    
compilation error: file ../../common/xsl/common.xsl line 4 element stylesheet                                                             
xsl:exclude-result-prefixes : undefined namespace #default                                                                                                    
Parsing stylesheet ../../common/xsl/index.xsl took 1 ms                                                                                                         
compilation error: file ../../common/xsl/index.xsl line 4 element stylesheet                                                                
xsl:exclude-result-prefixes : undefined namespace #default                                                                                                    
../../common/docbook/xsl/html/synop.xsl:1022: parser error : Premature end of data in tag code line 1018        
                                                                                                                                                                                                                        
        ^                                                                                                                                                                                                             
../../common/docbook/xsl/html/synop.xsl:1022: parser error : Premature end of data in tag template line 1013
                                                                                                                                                                                                                        
        ^                                                                                                                                                                                                             
../../common/docbook/xsl/html/synop.xsl:1022: parser error : Premature end of data in tag stylesheet line 5 
                                                                                                                                                                                                                        
        ^                                                                                                                                                                                                             
compilation error: file ../../common/docbook/xsl/html/docbook.xsl line 62 element include                                     
xsl:include : unable to load ../../common/docbook/xsl/html/synop.xsl                                                                                
compilation error: file ../../common/xsl/htmlcommon.xsl line 4 element stylesheet                                                     
xsl:exclude-result-prefixes : undefined namespace #default                                                                                                    
compilation error: file ../../common/xsl/common.xsl line 4 element stylesheet                                                             
xsl:exclude-result-prefixes : undefined namespace #default                                                                                                    
cd: 12: can't cd to dist/html/                                                                                                                                                            
Parsing stylesheet ../../common/xsl/htmlsingle.xsl took 0 ms                                                                                                
compilation error: file ../../common/xsl/htmlsingle.xsl line 4 element stylesheet                                                     
xsl:exclude-result-prefixes : undefined namespace #default                                                                                                    
../../common/docbook/xsl/html/synop.xsl:1022: parser error : Premature end of data in tag code line 1018        
                                                                                                                                                                                                                        
        ^                                                                                                                                                                                                             
../../common/docbook/xsl/html/synop.xsl:1022: parser error : Premature end of data in tag template line 1013
                                                                                                                                                                                                                        
        ^                                                                                                                                                                                                             
../../common/docbook/xsl/html/synop.xsl:1022: parser error : Premature end of data in tag stylesheet line 5 
                                                                                                                                                                                                                        
        ^                                                                                                                                                                                                             
compilation error: file ../../common/docbook/xsl/html/docbook.xsl line 62 element include                                     
xsl:include : unable to load ../../common/docbook/xsl/html/synop.xsl                                                                                
compilation error: file ../../common/xsl/htmlcommon.xsl line 4 element stylesheet                                                     
xsl:exclude-result-prefixes : undefined namespace #default                                                                                                    
compilation error: file ../../common/xsl/common.xsl line 4 element stylesheet                                                             
xsl:exclude-result-prefixes : undefined namespace #default                                                                                                    
Colorizing diveintopython.html                                                                                                                                                            
Traceback (most recent call last):                                                                                                                                                    
    File "../common/py/colorize.py", line 140, in <module>                                                                                                        
        process(filedir, usefonts)                                                                                                                                                            
    File "../common/py/colorize.py", line 113, in process                                                                                                         
        sock = open(filename, "r")                                                                                                                                                            
IOError: [Errno 2] No such file or directory: 'dist/htmlflat/diveintopython.html'                                                     
rm: 无法删除 “../common/py/*.log”: 没有该文件或目录                                                                                                                 
diveintopython-html-5.4_zh-ch/                                                                                                                                                            
diveintopython-html-5.4_zh-ch/py/                                                                                                                                                     
diveintopython-html-5.4_zh-ch/py/apihelpertest.py                                                        














本文转sinojelly51CTO博客,原文链接:http://blog.51cto.com/sinojelly/242966,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值