Operating System specific notes
Redhat / Fedora Core
- The packages libungif and libungif-progs should be installed.
- RedHat RPM packages of Gocr are not built with NetPBM support. Using them decreases detection rate!
Fedora Core 5 (or higher)
- The package libungif-utils provides the necessary libungif binaries.
- Fedora repository rpm (10.34-1.fc5) for netpbm is broken due to patches not having been applied. Install from source rpm (which applies patches) or tarball (and patch).
Debian
- The package libungif-bin provides the necessary libungif binaries.
- DebianSarge
Debian Testing (Etch)
- # apt-get install netpbm gifsicle libungif-bin gocr ocrad
- # cpan String::Approx MLDBM (or apt-get install libstring-approx-perl libmldbm-sync-perl)
Suse 10.0
- The packages giflib and gilflib-progs should be installed.
- For the 3.x branch, the package ungifsicle provides gifsicle.
Gentoo
- FuzzyOcr will soon be in portage. Meanwhile get the ebuild(s) here: http://bugs.gentoo.org/show_bug.cgi?id=158445
- All dependencies except the perl modules are in portage
- To apply the patches, one might need custom ebuilds for gocr and giflib (or install from source)
- The necessary perl module(s) can be installed with gcpan
Mandriva
- Packages ungifsicle and libungif-progs should be installed
- The line below should install all dependencies:
- # urpmi ocrad netpbm ungifsicle libungif-progs perl-String-Approx perl-MLDBM perl-MLDBM-Sync perl-Log-Agent
Slackware
Slackware 11.0 now includes the binaries in its libungif package. The libungif.SlackBuild file now has this:
## I don't believe we need all this slop. Correct me if I'm wrong.
# I've been corrected...
#rm -rf $PKG/usr/bin
In earlier versions Slackware does not have a libungif-utils/progs/bin package, and the libungif package does not include the binaries such as giffix. So, you have to hack it a bit.
- Download (or copy from CD) the /source/l/libungif directory, don't untar anything
- Edit the libungif.SlackBuild and comment out this line:
# I don't believe we need all this slop. Correct me if I'm wrong. rm -rf $PKG/usr/bin - Run "sh libungif.SlackBuild"
- Uninstall the libungif package, if it's already installed
- Look in /tmp, and install the new libungif package there
Thanks to Andy Lyttle for the Slackware explanations :)
FreeBsd
Great Walkthrough here for using Ports: 'FuzzyOCR for SpamAssassin on FreeBSD' http://jamesoff.net/site/projects/freebsd/fuzzyocr-for-spamassassin-on-freebsd/
OpenBSD 3.9
yes, worked !
Mac OSX Server 10.4
Use Macports. Download it from here: http://www.macports.org/ Once you have it installed, open a terminal window and run:
sudo port install Gifsicle sudo port install NetPBM sudo port install Giflib sudo port install Gocr
Then install the perl modules using CPAN
sudo perl -MCPAN -e shell install String::Approx
Then follow the instructions for placing the modules in the correct folder.
This page can be edited by anyone, if your OS is not listed here, or a point is missing for your OS, feel free to add it.
