I have downloadee the following file as suggested by Nylex.
chmlib-0.37.4.zip
[ I have downloaded from the following site:
http://66.93.236.84/~jedwin/projects/chmlib/]
I installed it. Everything went smoothly.
[root@c83-250-91-176 Desktop]# ls
chmlib-0.37.4.zip Home.desktop jre1.5.0_01/ Welcome.desktop
device.desktop install_flash_player_7_linux/ jre-1_5_0_05-linux-amd64-rpm.bin
firefox/ install_flash_player_7_linux-1.tar.gz trash.desktop
firefox-1.5.tar.gz install_flash_player_7_linux.tar.gz usr
[root@c83-250-91-176 Desktop]# unzip 'chmlib-0.37.4.zip'
Archive: chmlib-0.37.4.zip
creating: chmlib-0.37/
creating: chmlib-0.37/src/
inflating: chmlib-0.37/src/lzx.c
inflating: chmlib-0.37/src/lzx.h
inflating: chmlib-0.37/src/extract_chmLib.c
inflating: chmlib-0.37/src/Makefile.simple
inflating: chmlib-0.37/src/test_chmLib.c
[root@c83-250-91-176 chmlib-0.37]# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
[root@c83-250-91-176 chmlib-0.37]# make
/bin/sh /home/nissanka/Desktop/chmlib-0.37/libtool --mode=compile gcc -c -o src/chm_lib.lo src/chm_lib.c -g -O2 -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -DDMALLOC_DISABLE
mkdir src/.libs
gcc -c src/chm_lib.c -g -O2 -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -DDMALLOC_DISABLE -fPIC -DPIC -o src/.libs/chm_lib.o
gcc -c src/chm_lib.c -g -O2 -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -DDMALLOC_DISABLE -o src/chm_lib.o >/dev/null 2>&1
/bin/sh /home/nissanka/Desktop/chmlib-0.37/libtool --mode=compile gcc -c -o src/lzx.lo src/lzx.c -g -O2 -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -DDMALLOC_DISABLE
[root@c83-250-91-176 chmlib-0.37]# make install
mkdir -p /usr/local /usr/local/lib /usr/local/include
/bin/sh /home/nissanka/Desktop/chmlib-0.37/libtool --mode=install install -m0755 src/libchm.la /usr/local/lib/
install -m0755 src/.libs/libchm.so.0.0.0 /usr/local/lib/libchm.so.0.0.0
(cd /usr/local/lib && rm -f libchm.so.0 && ln -s libchm.so.0.0.0 libchm.so.0)
(cd /usr/local/lib && rm -f libchm.so && ln -s libchm.so.0.0.0 libchm.so)
install -m0755 src/.libs/libchm.lai /usr/local/lib/libchm.la
install -m0755 src/.libs/libchm.a /usr/local/lib/libchm.a
ranlib /usr/local/lib/libchm.a
chmod 644 /usr/local/lib/libchm.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
install -m0644 ./src/chm_lib.h /usr/local/include/
[root@c83-250-91-176 chmlib-0.37]# ls
aclocal.m4 ChmLib-ds6.zip config.status* configure.in install-sh* Makefile README
AUTHORS config.guess* config.sub* COPYING libtool* Makefile.in src/
ChmLib-ce.zip config.log configure* INSTALL ltmain.sh NEWS
[I read the README file, Makefile, NEWS file and Makefile.in . I couldn't get a clue as to the conversion of a .chm file.]
What shall I do?