CentOS安裝xchm

來源:互聯網
上載者:User

CentOS安裝xchm

需要看一些chm的檔案,這東西在Linux下面預設是不支援的,畢竟是微軟開發的東西,但是好多牛人開發了一些工具可以查看chm檔案,我也都瀏覽了一些,先是嘗試了一下firefox的一個ChmFox外掛程式,使用了一個不行,還有chmsee用了一下也支援不好,最後用的是xchm,不錯,中文顯示也挺好,不過標題列顯示亂碼,不知道為什麼,還有就是速度不是很快,但也在接受的範圍之內,開啟一個30M的檔案,用了是18s,我只試了一次,使用過程中有時候內容多,反應也慢一些,不過顯示的挺正常,就用它了。

安裝它也挺簡單的,要使用第三方源rpmforge,在這裡有安裝方法:http://www.centoscn.com/CentOS/config/2014/1027/3998.html

現在去下載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: NOKEYerror: 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, securitySetting up Local Package ProcessExamining xchm-1.22-1.el6.i686.rpm: xchm-1.22-1.el6.i686Marking xchm-1.22-1.el6.i686.rpm to be installedLoading mirror speeds from cached hostfile * base: mirrors.neusoft.edu.cn * extras: mirrors.neusoft.edu.cn * rpmforge: mirror.chpc.utah.edu * updates: mirrors.neusoft.edu.cnResolving 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 ResolutionDependencies Resolved================================================================================ Package     Arch      Version                 Repository                  Size================================================================================Installing: xchm        i686      1.22-1.el6              /xchm-1.22-1.el6.i686      725 kInstalling for dependencies: chmlib      i686      0.40-1.el6.rf           rpmforge                    51 k wxGTK       i686      2.8.12-1.el6.rf         rpmforge                    17 MTransaction Summary================================================================================Install       3 Package(s)Total size: 18 MTotal download size: 17 MInstalled size: 75 MIs this ok [y/N]: yDownloading 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:03Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning 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,這次安裝成功了,開啟嘗試一下,沒問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.