- Unpacking source
The source is distributed in GNU zip compressed tar format. If you have GNU tar, choose the parent directory that you want the sources in and type
tar xzf libht_n.m.tar.gzIf you don't have GNU tar you need to type:gunzip -c libht_n.m.tar.gz -c | tar xf -You are now ready to configure for your system. Move to the directory libht_n.m.
- Configuring for your system
First, copy the template configuration in Configuration.tmpl to Configuration and edit it with your favorite text editor. It should be relatively simple, and may even work on your system. Interesting variables are:
- SERVERROOT
- The debugger needs to know where the root of your httpd is, potentially (with the Apache HTTPD, it figures it out for you), but you should probably set this anyway.
- JAVAC
- This is the path to your Java compiler. If you don't have a Java compiler, don't fret, the bytecode is shipped with the package.
- DEBUGGER
- Normally, this is the path to gdb. Other debuggers might work, but some tinkering is highly likely.
- Module XXX
- You can chose optional packages to compile. Comment out the modules you aren't interested in.
- Building
Once you've edited Configuration, type
Configureat the top level of libht. It should figure out what kind of system you have and create the requisite Makefiles. Now type:maketo build libht. If this goes smoothly, you should be ready to install.
- Installing various packages
- Installing the Debugger
- You should read the complete instructions for installing the debugger as the debugger can potentially expose your system to outside attack if you are naive.
- Installing the Msql Login Manager
- In order to create the necessary database tables to store login information you need to have a running Msql on the local machine. As root, type:
make install_login
- Installing DBM Login Manager
- In order to create the necessary database tables to store login information you need to create the DBM database to handle it. Normally, these are stored in /usr/local/lib. As root, type:
make install_logindbm
- Creating the Search Engine Database
- In order to use the search engine functions (crawl, search) you need to create the necessary Msql tables. As root, type:
make install_searchRefer to the pages on crawl to create the indices necessary to search your site.