Roger,
        This is not a required library to use HtDig.  It's main use is if 
you want to write a PHP page to query the index built with HtDig (or a 
program which calls libhtdig functions).

        Basically the configure in libhtdigphp was altered from the 
'libbz' module that can be built in PHP.

        ./configure --with-htdig=xxxx 

Where xxx   your-htdig-dir/libhtdig

        After configure you will have to run 'make' which compile 
htdigphp.c and fail onthe link.

        Edit relink.sh and change the references to your own directories 
and run it.  You should have a one-piece library libhtdigphp.so which you 
can use from PHP code.  It's basically a wrapper library for libhtdig.

        I haven't bothered to clean this up as you are the first person to 
report trying to build it.

        I probably need to ditchthe configure and have a simple makefile 
with clear instructions for various path strings to make the process 
more friendly.

        htdig_search.php contains example code to query the index.

Thanks

Neal.

On Sat, 19 Mar 2005 [EMAIL PROTECTED] wrote:

> Hello htdig-devs,
> 
> In configure of libhtdigphp  I am having this error:
> 
> <--screen dump begin-->
> 
> [EMAIL PROTECTED] libhtdigphp-2]# ./configure
> loading cache ./config.cache
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking whether gcc and cc understand -c and -o together... (cached) yes
> checking for PHP prefix... /usr
> checking for PHP includes... -I/usr/include/php -I/usr/include/php/main 
> -I/usr/include/php/Zend -I/usr/include/php/TSRM
> checking for PHP extension directory... /usr/lib/php4
> checking for HtDig support... yes, shared
> checking for HtDig in default path... not found
> configure: error: Please reinstall the HtDig distribution
> [EMAIL PROTECTED] libhtdigphp-2]
> 
> <--screen dump end-->
> 
> My HtDig distribution (htdig-3.2b5-libhtdig) is installed freshly and works 
> smoothly (htdig indexing and htsearch giving results).
> 
> I already 'make' libhtdig successfully with minor warnings (deprecated 
> headers).
> 
> now, configure in libhtdigphp-2 make this check:
> 
> <--extracted code begin-->
> ...
> if test "$PHP_HTDIG" != "no"; then
> 
>   if test -r $PHP_HTDIG/include/libhtdig_api.h; then
>     HTDIG_DIR=$PHP_HTDIG
>   else
>     echo $ac_n "checking for HtDig in default path""... $ac_c" 1>&6
> echo "configure:1067: checking for HtDig in default path" >&5
>     for i in /usr/local /usr; do
>       if test -r $i/include/libhtdig_api.h; then
>         HTDIG_DIR=$i
>         echo "$ac_t""found in $i" 1>&6
>       fi
>     done
>   fi
> 
>   if test -z "$HTDIG_DIR"; then
>     echo "$ac_t""not found" 1>&6
>     { echo "configure: error: Please reinstall the HtDig distribution" 1>&2; 
> exit 1; }
>   fi
> ...
> <--extracted code end-->
> 
> It's obvious that I have to have libhtdig_api.h in some /usr/local/include/ 
> or /usr/inlcude directory 
>  Why is not there? Do I have to move it there manually ? What else do I have 
> to copy from libhtdig dir to include or lib ?
> 
> right now I have libhtdig_api.h only here:
> 
> [EMAIL PROTECTED] libhtdigphp-2]# locate libhtdig_api.h
> /src/htdig-3.2b5-libhtdig/libhtdig/libhtdig_api.h
> 
> Readme doesn't say anything about this, and I want to have this libraries in 
> the right place before continue.
> I would really appreciate your help.
> 
> Roger Moreno

-- 
Neal Richter
Knowledgebase Developer
RightNow Technologies, Inc.
Customer Service for Every Web Site
Office: 406-522-1485




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
ht://Dig Developer mailing list:
htdig-dev@lists.sourceforge.net
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to