According to Geoff Hutchison:
> 
> > -Is posible to run htdig in Linux? 
> 
> Yes. At the moment it probably gets more testing under Linux than any
> other platform.
> 
> > -What I must do to run it?
> 
> See <http://www.htdig.org/require.html>
> 

Someone might want to add a note to the documentation about removing the
"-ggdb" flag from CPPFLAGS, CXXFLAGS & LDFLAGS in Makefile.config.in
before running configure (or Makefile.config after running configure),
in order to compile under Linux.  This is a must!  It will seem to
compile OK with the -ggdb option, but you'll get strange errors when
you run htmerge, e.g.:

Somewhere_deep_inside...: /opt/www/htdig/db/db.docdb: unexpected file format

Red Hat Linux users may be interested in the i386 and source RPMs for
htdig 3.1.0b1, which are available by ftp from contrib.redhat.com,
or any Red Hat mirror site that carries the contrib files.

If you want to build it yourself, but want it to adhere to the Linux
FSSTND conventions for configuration and database file locations,
you can apply the patch below to the original 3.1.0b1 source tree,
and build and install it wich these commands:

   CFLAGS="-O2" ./configure --prefix=/usr \
        --bindir=/usr/sbin --libexec=/usr/lib --libdir=/usr/lib \
        --mandir=/usr/man --sysconfdir=/etc/htdig --localstatedir=/var/htdig
   make

   mkdir -p /etc/htdig
   mkdir -p /home/httpd/html/htdig
   mkdir -p /var/lib/htdig/common
   mkdir -p /var/lib/htdig/db
   make ROOT="" install
   chmod -R go-w /home/httpd/html/htdig /var/lib/htdig
   chmod a-x /var/lib/htdig/common/*
   chmod go-w /usr/sbin/ht* /home/httpd/cgi-bin/htsearch
   strip /usr/sbin/ht* /home/httpd/cgi-bin/htsearch

Here's the patch file:
---------------------------------------------------
--- htdig-3.1.0b1/Makefile.config.in.orig       Mon Sep  7 22:29:54 1998
+++ htdig-3.1.0b1/Makefile.config.in    Tue Sep 22 15:54:12 1998
@@ -31,9 +31,9 @@
 
 #CPPFLAGS=     $(CC_OPTIONS) -ggdb -static @CXXFLAGS@ @DEFS@ $(INCS)
 #CXXFLAGS=     @CXXFLAGS@ -ggdb -static $(LOCAL_DEFINES) $(DEFINES) $(INCS)
-CPPFLAGS=      $(CC_OPTIONS) -ggdb -O2 @CXXFLAGS@ @DEFS@ $(INCS)
-CXXFLAGS=      @CXXFLAGS@ -ggdb -O2 $(LOCAL_DEFINES) $(DEFINES) $(INCS)
-LDFLAGS=       -ggdb $(LIBDIRS)
+CPPFLAGS=      $(CC_OPTIONS) -O2 @CXXFLAGS@ @DEFS@ $(INCS)
+CXXFLAGS=      @CXXFLAGS@ -O2 $(LOCAL_DEFINES) $(DEFINES) $(INCS)
+LDFLAGS=       $(LIBDIRS)
 
 .SUFFIXES: .cc
 .cc.o:
--- htdig-3.1.0b1/CONFIG.orig   Wed Sep  9 22:44:08 1998
+++ htdig-3.1.0b1/CONFIG        Thu Sep 17 19:48:05 1998
@@ -13,19 +13,22 @@
 #
 # This specifies the root of the directory tree to be used by ht://Dig
 #
-DEST=                  /opt/www/htdig
+#DEST=                  /opt/www/htdig
+DEST=                  $(ROOT)/var/lib/htdig
 
 #
 # BIN_DIR
 # Set this macro to where you want the binaries to be installed.
 #
-BIN_DIR=               $(DEST)/bin
+#BIN_DIR=               $(DEST)/bin
+BIN_DIR=               $(ROOT)/usr/sbin
 
 #
 # CONFIG_DIR
 # This is the directory that contains ht://Dig configuration files
 #
-CONFIG_DIR=            $(DEST)/conf
+#CONFIG_DIR=            $(DEST)/conf
+CONFIG_DIR=            $(ROOT)/etc/htdig
 
 #
 # COMMON_DIR
@@ -52,14 +55,16 @@
 # The directory where your HTTP server looks for CGI programs.  This is where
 # htsearch will get installed.
 #
-CGIBIN_DIR=             /opt/www/cgi-bin
+#CGIBIN_DIR=             /opt/www/cgi-bin
+CGIBIN_DIR=             $(ROOT)/home/httpd/cgi-bin
 
 #
 # IMAGE_DIR
 # Define this to be a place that can be accessed by your web server.  This is
 # where a couple of images will be placed.
 #
-IMAGE_DIR=              /opt/www/htdocs/htdig
+#IMAGE_DIR=              /opt/www/htdocs/htdig
+IMAGE_DIR=              $(ROOT)/home/httpd/html/htdig
 
 #
 # IMAGE_URL_PREFIX
@@ -72,7 +77,8 @@
 # Set this to the absolute path where you want the sample search form to
 # be installed.
 #
-SEARCH_DIR=            /opt/www/htdocs/htdig
+#SEARCH_DIR=           /opt/www/htdocs/htdig
+SEARCH_DIR=            $(ROOT)/home/httpd/html
 
 #
 # SEARCH_FORM
---------------------------------------------------

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
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
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.

Reply via email to