FuzzyOcr install problem and fix

I installed FuzzyOcr according to installation instructions , after run that test command, I got some error message like this:

Nov  4 11:08:19.217 [4740] warn: plugin: eval failed: Insecure dependency in open while running with -T switch at /etc/mail/spamassassin/FuzzyOcr/Logging.pm line 17.
...
save_execute: Insecure dependency in exec while running with -T switch at /etc/mail/spamassassin/FuzzyOcr/Misc.pm line 173.
...
Error: save_execute: Insecure dependency in exec while running with -T switch at /etc/mail/spamassassin/FuzzyOcr/Misc.pm line 174.

This is caused by perl security restrictions in tainting mode,  you can apply this patch to fix this problem.
save it as fuzzyocr_taint.patch, then:

cd /etc/spamassassin/FuzzyOcr/
patch -p1 /path/to/fuzzyocr_taint.patch

Also note that on Ubuntu system, some binary like pamthreshold, pamditherbw is missing from the netpbm package(that’s because the netpbm package there is very old, no such binaries). as a result, you’d better install the netpbm package yourself.

1) install prerequisite package(assuming that you already have a basic build toolset):

apt-get install libjpeg62-dev libtiff4-dev libpng12-dev flex bison

2) download the latest super stable netpbm from:
http://sourceforge.net/projects/netpbm/files/super_stable/10.35.77/netpbm-10.35.77.tgz/download
unpack, cd to it. run:

./configure

answer the question(just press enter except the following):
* What is your X11 (X client) library?: input “none
* What is your Svgalib library? input “none
then,run

 make

, if no error, run

make package

if all ok, run:

./installnetpbm

to install it.after that, run:

echo '/usr/local/netpbm/lib' > /etc/ld.so.conf.d/netpbm.conf && ldconfig
This entry was posted in System Administration and tagged , , , . Bookmark the permalink.

Leave a Reply