Re: [htdig] Installation on Virtual Server

Subject: Re: [htdig] Installation on Virtual Server
From: Gilles Detillieux (
Date: Mon Feb 07 2000 - 14:32:44 PST

According to Boyd G. Morse:
> I am trying to install ht://dig on an virtual server system, and
> have been successful running htdig, and having it create the appropriate
> database files. My problems start when I try to query the database via
> htsearch thru the apache web server. I have successfully run htsearch via
> telnet, so I know that everything else is ok (I think!?). The following is
> the error I receive from apache:
> htsearch: error in loading shared libraries
> cannot open shared object file: No such file or directory
> httpd: [Sun Feb 6 07:39:20 2000] [error] [client] Premature
> end of script headers: /www/cgi-bin/htsearch

As the messages say, htsearch can't access the shared library,
which it needs for decompressing the document excerpts. The problem
is most likely because this library is not installed in the standard
location that the loader expects to find shared libraries. It may be
that when running programs from the command line, it finds them because
the directory in which they are found is listed in the LD_LIBRARY_PATH
environment variable, but this variable doesn't automatically get passed
to CGI programs.

You may have to make sure this variable is set correctly before the
Apache server is run, and add "PassEnv LD_LIBRARY_PATH" to Apache's
httpd.conf file. If you don't have root privileges, you'll have to
either get the cooperation of your sysadmin, or perhaps you can rebuild
your htsearch binary using the -R option to specify the directory in
which the missing libraries are found. You can add this to the LIBDIRS
setting in Makefile.config. This has solved the problem for some users.

Gilles R. Detillieux              E-mail: <>
Spinal Cord Research Centre       WWW:
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig mailing list, send a message to You will receive a message to confirm this.

This archive was generated by hypermail 2b28 : Mon Feb 07 2000 - 15:48:55 PST