Closed samnissen closed 11 years ago
Have you installed all the tesseract packages?
The gem depends on the installation of the tesseract library and its headers.
I believe I have. I followed this guide: http://paramountideas.com/tesseract-ocr-30-and-leptonica-installation-centos-55-and-opensuse-113
Including:
yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel
and leptonica from http://www.leptonica.com/source/leptonlib-1.67.tar.gz
and the English language files from http://tesseract-ocr.googlecode.com/files/eng.traineddata.gz
Well, the error says it can't find the library, so you should probably add LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include"
or the paths where the libraries and headers have been installed when running the script.
Aha, so this is where my lack of knowledge betrays me (again). I ran the following, but truth be told I don't know what the paths should be, so I got the same error. So i guess first question is -- is what I did structurally correct? And, if so: How can I determine where the flags should point to? What am I looking to point them to?
export LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include"
./configure
make
make install
Your help is much appreciated!
No, sorry I wasn't clear enough, you should export those env vars before running the Ruby script that requires the gem.
Total noob here, so maybe this is an issue on my side, but can't figure out how to get past this error. I'm hoping to install the gem on my Linux server running Centos 6. The upshot seems to be that -ltesseract should be in /usr/bin/ld, but isn't ...
I've read through the other compilation error issues posted, but I don't think I have any of those problems.
Error mesage
Error in usage
Gem version
[...]
[...]
GCC version
[...]
OS
Ruby version
RVM Version (just in case it matters)