免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1056 | 回复: 0
打印 上一主题 下一主题

Linux下查看chm文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-27 13:43 |只看该作者 |倒序浏览

1.首先下载软件
http://software.lupaworld.com/show.php?id=98
2.安装
[root@linuxedu.net]#tar xjf chmsee-gtkhtml-0.9.0.tar.bz2
[root@linuxedu.net]#cd chmsee-gtkhtml-0.9.0
[root@linuxedu.net]#./configure --prefix=/usr/local/chmsee
[root@linuxedu.net]#make
[root@linuxedu.net]#make check
[root@linuxedu.net]#make install
3.应用
[root@linuxedu.net]#cd /usr/local/chmsee
[root@linuxedu.net]#./bin/chmsee-gtkhtml &
现在就可以打开你的chm文件进行查看了.


还有一种方法就是安装开源软件xchm,不过对中文支持不是很好.
1.下载软件
http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.6.3.tar.gz
http://prdownloads.sourceforge.net/xchm/xchm-1.9.tar.gz?download
http://66.93.236.84/%7Ejedwin/projects/chmlib/chmlib-0.38.tar.gz
分别下载:wxWidgets-2.6.3.tar.gz,xchm-1.9.tar.gz,chmlib-0.38.tar.gz
2.安装软件
[root@linuxedu.net]#tar xzf wxWidgets-2.6.3.tar.gz
[root@linuxedu.net]#cd wxWidgets-2.6.3
[root@linuxedu.net]#./configure --with-x11
[root@linuxedu.net]#make
[root@linuxedu.net]#make install
[root@linuxedu.net]#ldconfig /usr/lib/
[root@linuxedu.net]#ldconfig /usr/local/lib
[root@linuxedu.net]#tar xzf chmlib-0.38.tar.gz
[root@linuxedu.net]#cd chmlib-0.38
[root@linuxedu.net]#/configure
[root@linuxedu.net]#make
[root@linuxedu.net]#make install
[root@linuxedu.net]#tar xzf xchm-1.9.tar.gz
[root@linuxedu.net]#cd xchm-1.9
[root@linuxedu.net]#./configure --prefix=/usr/local/xchm
[root@linuxedu.net]#make
[root@linuxedu.net]#make install
[root@linuxedu.net]#cd /usr/local/xchm/bin
[root@linuxedu.net]#./xchm &
注意:不安装wxWidgets会有以下错误信息
configure: error:
           wxWidgets must be installed on your system
           but the wx-config script couldn't be found.
           Please check that wx-config is in path, the directory
           where wxWidgets libraries are installed (returned by
           'wx-config --libs' command) is in LD_LIBRARY_PATH or
           equivalent variable and wxWidgets version is 2.3.4 or above.
./xchm: error while loading shared libraries:
libwx_x11univ_xrc-2.6.so.0: cannot open shared object file: No such
file or directory
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/44757/showart_484865.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP