ht://Dig Copyright © 1995-2004 The ht://Dig Group
Please see the file COPYING for license information.
This document will attempt to show the steps needed to build
and install the ht://Dig system.
The main sections are:
The standard GNU installation process works for ht://Dig.
(The final three commands must be issued as root.)
The distribution of ht://Dig is in the form of a gzipped tar
file. The name of the file will be something like
htdig-3.2.0.tar.gz. To extract, you can use either the GNU
tar command as follows:
% tar xzf tarfile.tar.gz
If you do not have GNU tar, you can do the following:
% gunzip -c tarfile.tar.gz | tar xf -
In either case, a new directory will be created under which the
distribution will be extracted. The directory it creates will
htdig- followed by the version number.
Once the distribution has been extracted, change to the newly
In this directory you will need execute the
This program will attempt to determine what your particular system can and can't do.
If you are going to change any of the sources to ht://Dig, then you can optionally add dependency information to all the Makefiles before running configure with the command
This only needs to be done if you are going to change any of the sources to ht://Dig and requires GCC.
The configure program has some ht://Dig specific options in addition to the standard ones that you get when running
--with-image-dir=DIRoption above [default=/htdig].
The configure program will have created Makefiles in all the important directories.
If make is not able to deal with the generated Makefiles, you should probably obtain GNU make.
Now build the complete system with
(Sit back and relax for a while...)
If the compilation failed with the error that it cannot find libht.a, the most likely problem is that your system does not have libstdc++ installed. Please check the system requirements for details on this.
Once built, you can run tests if you provided the
--enable-tests at configure time. These tests
require that you have a working
Apache daemon available with
version >= 1.3.1. To run the tests execute:
If your Apache daemon is
installed in a non standard place, specify it with the
--with-apache=PATH configure option.
% make check
Everything should have built at this point. To install the software, you need to execute
% make install
This will perform several tasks. It will first attempt to
create the directories that you specified to ./configure.
It will then copy the following programs to the
It will also copy the htsearch program to your
After this, several files will be customized and installed. Here is a list of the files that get installed:
- A minimal config file which can be used to create a search database for http://www.htdig.org/
- A sample HTML document that contains a search form.
- A sample HTML document that can be used as the search results footer.
- A sample HTML document that can be used as the search results header.
- A sample HTML document that can be used if nothing was found.
- A sample HTML document that will be displayed if the user entered an illegal boolean expression. found.
- Default list of words with affixes that is used by htfuzzy.
- Default affix rule database that is used by htfuzzy.
- The default star image that is used to rank matches.
- The default placeholder image that is the same size as the star, but is blank. This is used to align the results in the short listing.
- The nifty ht://Dig logo.
- Sample images used to show the search result pages.
- A sample shell script which will create a database.
- The shared and static libraries.
- The header files that allow anyone to develop a program based on the internals of htdig.
Note that these files will never replace any existing files that may already be installed.
It is also important to note that these files are mostly examples. As they stand, they will work, but you probably want to modify them to reflect your needs.
After the installation, you will be ready to test out
everything. You can use the
rundig script to make a
test database of the online documentation at
The only thing left to do is to modify the
htdig.conf config file which was placed in
Configuration manual has the details on how what
attributes are needed.
Then, you'll be ready to begin
By default ht://Dig is compiled with shared libraries. If
running on a platform other than Linux or FreeBSD, this may
be a problem. We recommend that you compile with the
--disable-shared configure option.
If you installed with shared libraries, you must be sure the system will find them. Usually it's done by adding the prefix/lib/htdig directory to the LD_LIBRARY_PATH. This is really system dependent and you must check your documentation.
Mac OS X cannot handle ht://Dig's shared libraries.
./configure --disable-shared --enable-static.
Solaris cc has problems with long file offsets.
HP-UX 10.20 does not handle ./configure. Sorry.