Install kchmviewer and view the chm File in linux

Source: Internet
Author: User
Install kchmviewer. in linux, view the chm File-general Linux technology-Linux technology and application information. For more information, see the following. View chm files in linux

The kernel of IE is required to view the chm file, which is obviously not implemented in linux. However, after chm is converted into a webpage file by software, it is not only messy, but often cannot find the home page, it is inconvenient, so we need to use a very useful chm File Viewing tool in linux -- kchmviewer. Below we will briefly describe its installation

Step 1 download the latest version of kchmviewer from www.kchmviewer.net.
Step 2 tar zfxv kchmviewer-3.1-2.tar.gz unzip the file to the current directory.
Step 3 switch to the decompressed directory,./configure

Program error
Checking for Qt... configure: error: Qt (> = Qt 3.3) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config. log.

Find the qt content in config. log.

[Root @ localhost kchmviewer-3.1] # cat config. log | grep qt
Configure: 30631:/usr/lib/qt3/include/qstyle. h
Configure: 30631:/usr/lib/qt3/qstyle. h
Configure: 30631:/usr/lib/qt/include/qstyle. h
Configure: 30631:/usr/lib/qt/qstyle. h
Configure: 30631:/usr/share/qt3/include/qstyle. h
Configure: 30631:/usr/share/qt3/qstyle. h
Configure: 30631:/usr/local/qt/include/qstyle. h
Configure: 30631:/usr/include/qt/qstyle. h
Configure: 30631:/usr/X11R6/include/X11/qt/qstyle. h
Configure: 30631:/usr/X11R6/include/qt/qstyle. h
Configure: 30631:/usr/X11R6/include/qt2/qstyle. h
Configure: 30631:/usr/include/qt3/qstyle. h
Tried/usr/lib/qt3/lib
Tried/usr/lib/qt3
Tried/usr/lib/qt/lib
Tried/usr/lib/qt
Tried/usr/share/qt3/lib
Tried/usr/share/qt3
Tried/usr/local/qt/lib
Configure: 30749: rm-rf SunWS_cache; g ++-o conftest-Wnon-virtual-dtor-Wno-long-Wundef-ansi-D_XOPEN_SOURCE = 500-D_BSD_SOURCE-Wcast-align-Wconversion-Wchar-subscripts-Wall -W-Wpointer-arith-Wwrite-strings-O2-Wformat-security-Wmissing-format-attribute-fno-exceptions-fno-check-new-fno-common-INO-DQT_THREAD_SUPPORT -D_REENTRANT-LNONE conftest. cc-lqt-mt-lpng-lz-lm-ljpeg-ldl-lSM-lICE-lXext-lX11-lSM-lICE-lpthread 1> & 5
Ac_cv_have_qt = have_qt = no

We can see that configure is looking for headers and libraries in qt3, but not found, to/usr/lib to see it, it turns out that the folder name is inconsistent, not qt but qt-3.3, add a parameter to configure to specify the directory.

. /Configure -- prefix =/usr -- with-qt-dir =/usr/lib/qt-3.3/-- with-qt-separated des =/usr/lib/qt-3.3/include/--- qt-libraries =/usr/lib/qt-3.3/lib

Configure again successfully
Step 4 make
Step 5 make install

At this point, the installation of kchmviewer is complete. Enter kchmviewer in the command line to start the program. After selecting the chm file, you can open it. The program interface is consistent with chm in windows, which is very convenient.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.