LDAP + BerkelyDB 4.3

Slackware 的環境下,Configure 都過不了
出現了 configure: error: Berkeley DB version mismatch

我終於要開始架設 LDAP 了

>Thanks. I’ve figured the linux problem, you are right, it pointed to an
>old db.h
>
on slackware 9.1 ,
/usr/include/db.h symlinks to /usr/include/db3/db.h .
there is also a /usr/include/db4/db.h , so I just changed the symlink
and all worked fine.

ln -s /usr/include/db4/db.h /usr/include/db.h

It will be OK….

Ksearch Problem about xpdf

Something occur in the pdf-documentation name with SPACE%20. The syntax error is noted with string “filename has illegal characters”

You can adjust the indexer.pl according to the note in ksearch forum.

http://www.kscripts.com/discus/messages/board-topics.html

I had the same arror as many of you running pdftotext “filename has illegal characters” so I deleted files’ names checking in indexer.pl and now it works fine. The condition is in the index_file function, all you have to do is to comment or delete the following:

if( $file !~ m/^[/\w.+-]*$/ || $file =~ m/../ ) {
print “nIgnoring PDF file ‘$file’: filename has illegal charactersnn”;
print LOG “nIgnoring PDF file ‘$file’: filename has illegal charactersnn” if $MAKE_LOG;
return;
}

I also had a problem with indexer.pl ignoring my .PDF (capital letters) files as it provides case sensitive search so I added a few lines to it. If you have the same problem change in the index_file function the contion on this:

if($PDF_TO_TEXT && ($file =~ m/.pdf$/i || $file =~ m/.PDF$/i)) {

I also added
push @FILE_EXTENSIONS, ‘PDF’ if $PDF_TO_TEXT;
to make sure that files with .PDF extention are not ignored.

Good luck

Hylafax & Send PDF out..

Hylafax & Send PDF out..

當 Hylafax 接到 FAX 時,自動把 FAX 以 pdf 的格式,寄給某個 Email Account..

參考網頁

http://www.infocopter.com/know-how/hylafax/

2.2 的部份

/var/spool/hylafax/etc/FaxDispatch
(This file might be missing and is required especially for forwarding incoming facsimiles as attachment.)

## $Id: FaxDispatch,v 1.2 2003/05/04 23:49:41 darren Exp $
##
## Default FaxDispatch file – routes all inbound faxes to FaxMaster as PDF
##
## Consult the faxrcvd(8C) man page for more information
##

SENDTO=FaxMaster; # by default email to FaxMaster
FILETYPE=pdf; # in PDF format

##
## This excerpt from the man page gives you an idea of what’s possible here
##
## You can route by sender’s TSI
#case “$SENDER” in
# *1*510*526*1212*) SENDTO=sam;; # Sam’s test rig in Berkeley
# *1*415*390*1212*) SENDTO=raster@asd;; # 7L Xerox room, used for scanning
# *5107811212) SENDTO=peebles@mti;; # stuff from home
#esac

## and/or by device
#case “$DEVICE” in
# ttyS1) SENDTO=john;; # all faxes received on ttyS1
# ttyLT0) SENDTO=mary@home;; # all faxes received on ttyLT0
#esac

## and/or by caller id
#case “$CIDNUMBER” in
# 435*) SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435
# 5059627777) SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF
#esac

copyright by retoh – created with mytexi