linux 下chm阅读器安装
By:Roy.LiuLast updated:2011-12-18
很郁闷,有很多资料是微软的CHM格式,但在REDHAT 下不能直接打开看的。
其实有很多其他工具,但没有试成功,最后看到了这个工具,试试吧,应该比这个安装简单的很多。
在网上看到一个工具 kchmviewer
http://www.kchmviewer.net/download.html
,下载后安装:
[root@192 xchm0.9.3.1]# rpm -ivh kchmviewer-5.3-1.i586.rpm
error: Failed dependencies:
libQtCore.so.4 is needed by kchmviewer-5.3-1.i586
libQtDBus.so.4 is needed by kchmviewer-5.3-1.i586
libQtGui.so.4 is needed by kchmviewer-5.3-1.i586
libQtNetwork.so.4 is needed by kchmviewer-5.3-1.i586
libQtWebKit.so.4 is needed by kchmviewer-5.3-1.i586
libQtXmlPatterns.so.4 is needed by kchmviewer-5.3-1.i586
libQtXml.so.4 is needed by kchmviewer-5.3-1.i586
rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by kchmviewer-5.3-1.i586
结果狂报错,基本原因,可以看出是QT问题,所以只能再安装QT吧
1. 在官网下载Qt4 ftp://ftp.trolltech.no/qt/source/qt-x11-opensource-src-4.4.3.tar.gz
2. 解压 tar -vxf qt-x11-opensource-src-4.4.3.tar.gz
3. 进入解压后的目录下运行 ./configure
4. 运行 gmake
5. 运行 gmake install /*第4和第5步是一个漫长的编译和拷贝的过程*/
6. 配置环境变量vim /etc/profile
QTDIR=/usr/local/Trolltech/Qt-4.4.3
PATH=$QTDIR/bin:$PATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
MANPATH=$QTDIR/man:$MANPATH
7. 保存退出重启PC
8. 如果遇到中文显示乱码问题,执行qtconfig将font设置成Bitstream charter。
其实有很多其他工具,但没有试成功,最后看到了这个工具,试试吧,应该比这个安装简单的很多。
在网上看到一个工具 kchmviewer
http://www.kchmviewer.net/download.html
,下载后安装:
[root@192 xchm0.9.3.1]# rpm -ivh kchmviewer-5.3-1.i586.rpm
error: Failed dependencies:
libQtCore.so.4 is needed by kchmviewer-5.3-1.i586
libQtDBus.so.4 is needed by kchmviewer-5.3-1.i586
libQtGui.so.4 is needed by kchmviewer-5.3-1.i586
libQtNetwork.so.4 is needed by kchmviewer-5.3-1.i586
libQtWebKit.so.4 is needed by kchmviewer-5.3-1.i586
libQtXmlPatterns.so.4 is needed by kchmviewer-5.3-1.i586
libQtXml.so.4 is needed by kchmviewer-5.3-1.i586
rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by kchmviewer-5.3-1.i586
结果狂报错,基本原因,可以看出是QT问题,所以只能再安装QT吧
1. 在官网下载Qt4 ftp://ftp.trolltech.no/qt/source/qt-x11-opensource-src-4.4.3.tar.gz
2. 解压 tar -vxf qt-x11-opensource-src-4.4.3.tar.gz
3. 进入解压后的目录下运行 ./configure
4. 运行 gmake
5. 运行 gmake install /*第4和第5步是一个漫长的编译和拷贝的过程*/
6. 配置环境变量vim /etc/profile
QTDIR=/usr/local/Trolltech/Qt-4.4.3
PATH=$QTDIR/bin:$PATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
MANPATH=$QTDIR/man:$MANPATH
7. 保存退出重启PC
8. 如果遇到中文显示乱码问题,执行qtconfig将font设置成Bitstream charter。
From:一号门
Previous:在REDHAT5下安装PYTHON
COMMENTS