需要看一些chm的文件,这东西在Linux下面默认是不支持的,毕竟是微软开发的东西,但是好多牛人开发了一些工具可以查看chm文件,我也都浏览了一些,先是尝试了一下firefox的一个ChmFox插件,使用了一个不行,还有chmsee用了一下也支持不好,最后用的是xchm,不错,中文显示也挺好,不过标题栏显示乱码,不知道为什么,还有就是速度不是很快,但也在接受的范围之内,打开一个30M的文件,用了是18s,我只试了一次,使用过程中有时候内容多,反应也慢一些,不过显示的挺正常,就用它了。 安装它也挺简单的,要使用第三方源rpmforge 现在去下载xchm,地址在这里:http://pkgs.org/search/?keyword=xCHM,其实这个网站http://pkgs.org很好,里面软件挺全的,直接搜索自己想要的软件就可以。在这里我们选择自己对应的版本进入目录,在Download xchm那点击进入下载页面,选择下载binary package版本。下载后直接安装: [root@ienter Downloads]# rpm -ivh xchm* warning: xchm-1.22-1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY error: Failed dependencies: libchm.so.0 is needed by xchm-1.22-1.el6.i686 libwx_baseu-2.8.so.0 is needed by xchm-1.22-1.el6.i686 libwx_baseu-2.8.so.0(WXU_2.8) is needed by xchm-1.22-1.el6.i686 libwx_baseu_net-2.8.so.0 is needed by xchm-1.22-1.el6.i686 libwx_baseu_net-2.8.so.0(WXU_2.8) is needed by xchm-1.22-1.el6.i686 libwx_baseu_xml-2.8.so.0 is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_adv-2.8.so.0 is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_aui-2.8.so.0 is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_aui-2.8.so.0(WXU_2.8) is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5) is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_core-2.8.so.0 is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_core-2.8.so.0(WXU_2.8) is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_html-2.8.so.0 is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_html-2.8.so.0(WXU_2.8) is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_qa-2.8.so.0 is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_richtext-2.8.so.0 is needed by xchm-1.22-1.el6.i686 libwx_gtk2u_xrc-2.8.so.0 is needed by xchm-1.22-1.el6.i686 完蛋,安装的信赖挺多的,改用yum安装: [root@ienter Downloads]# yum localinstall xchm* Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Local Package Process Examining xchm-1.22-1.el6.i686.rpm: xchm-1.22-1.el6.i686 Marking xchm-1.22-1.el6.i686.rpm to be installed Loading mirror speeds from cached hostfile * base: mirrors.neusoft.edu.cn * extras: mirrors.neusoft.edu.cn * rpmforge: mirror.chpc.utah.edu * updates: mirrors.neusoft.edu.cn Resolving Dependencies --> Running transaction check ---> Package xchm.i686 0:1.22-1.el6 will be installed --> Processing Dependency: libchm.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_baseu-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_baseu-2.8.so.0(WXU_2.8) for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_baseu_net-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_baseu_net-2.8.so.0(WXU_2.8) for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_baseu_xml-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_adv-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_aui-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_aui-2.8.so.0(WXU_2.8) for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5) for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_core-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8) for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_html-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_html-2.8.so.0(WXU_2.8) for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_qa-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_richtext-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Processing Dependency: libwx_gtk2u_xrc-2.8.so.0 for package: xchm-1.22-1.el6.i686 --> Running transaction check ---> Package chmlib.i686 0:0.40-1.el6.rf will be installed ---> Package wxGTK.i686 0:2.8.12-1.el6.rf will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: xchm i686 1.22-1.el6 /xchm-1.22-1.el6.i686 725 k Installing for dependencies: chmlib i686 0.40-1.el6.rf rpmforge 51 k wxGTK i686 2.8.12-1.el6.rf rpmforge 17 M Transaction Summary ================================================================================ Install 3 Package(s) Total size: 18 M Total download size: 17 M Installed size: 75 M Is this ok [y/N]: y Downloading Packages: (1/2): chmlib-0.40-1.el6.rf.i686.rpm | 51 kB 00:01 (2/2): wxGTK-2.8.12-1.el6.rf.i686.rpm | 17 MB 04:53 -------------------------------------------------------------------------------- Total 58 kB/s | 17 MB 05:03 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : chmlib-0.40-1.el6.rf.i686 1/3 Installing : wxGTK-2.8.12-1.el6.rf.i686 2/3 Installing : xchm-1.22-1.el6.i686 3/3 Verifying : xchm-1.22-1.el6.i686 1/3 Verifying : wxGTK-2.8.12-1.el6.rf.i686 2/3 Verifying : chmlib-0.40-1.el6.rf.i686 3/3 Installed: xchm.i686 0:1.22-1.el6 Dependency Installed: chmlib.i686 0:0.40-1.el6.rf wxGTK.i686 0:2.8.12-1.el6.rf Complete! ok,这次安装成功了,打开尝试一下,没问题 (责任编辑:IT) |