I deleted all the liblept files in /usr/lib and the leptonica/ directory in /usr/local. Then, I went into leptonica-1.69/ and did ./configure, make, sudo make install, and sudo ldconfig. However, I still get the 'leptonica library missing' file error message when I try to configure tesseract 3.02. The error messages about the jpeg, tiff, and png library files might've been from using tesseract 3.00, which actually installed correctly. (Note - tesseract 3.00 actually has installed correctly, and I'm merely trying to install tesseract 3.02 over it.)
Right now, I'm upgrading to Ubuntu 12.04 and will see if it'll work. Thanks! On Saturday, September 22, 2012 11:51:20 AM UTC-7, zdenop wrote: > > BTW: I realized that you just run './configure' for leptonica, so > leptonica should be installed (by default) with /usr/local/ prefix. But > config.log shows that there is problem with /usr/lib/liblept.so. This > indicates you have two installation of leptonica library. If I am right, > that please remove (uninstall) version located in /usr/lib because it > produce errors. (than run 'sudo ldconfig', and try to configure > tesseract...) > > -- > Zdenko > > On Sat, Sep 22, 2012 at 12:05 PM, zdenko podobny > <[email protected]<javascript:> > > wrote: > >> Have a look at config.log and search for leptonica - you will see there >> the error messages like this: >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/liblept.so: undefined >> reference to `TIFFWriteScanline' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/liblept.so: undefined >> reference to `png_create_read_struct' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/liblept.so: undefined >> reference to `jpeg_destroy' >> >> These are function in jpeg, tiff, png libraries. Can you check where are >> installed these (shared) libraries? >> >> -- >> Zdenko >> >> On Sat, Sep 22, 2012 at 10:31 AM, Osman Masood >> <[email protected]<javascript:> >> > wrote: >> >>> Yes, I tried running sudo ldconfig after installing leptonica, and set >>> the LIBLEPT_HEADERSDIR environment variable. I also did 'make clean' in the >>> Leptonica directory and installed it again. However, it's still giving me >>> the same error. (I also tried using the latest version of Tesseract on >>> trunk, 3.02, but same results.) >>> >>> What's weird is that I followed pretty much the same steps and installed >>> Tesseract 3.02 successfully on OS X 10.8 (on a different machine). >>> >>> I actually had tried to install previous versions of Tesseract (3.00 and >>> 3.01) and Leptonica (1.67) on Ubuntu before this - would that make a >>> difference? >>> >>> My config.log is attached. >>> >>> Thanks for the help! >>> >>> On Saturday, September 22, 2012 12:27:17 AM UTC-7, zdenop wrote: >>> >>>> Hi, >>>> >>>> first of all: there is leptonica 1.69 and tesseract-ocr 3.02 >>>> in in Ubuntu 12.4 LTS Precise Pangolin. So maybe you can rebuild packages >>>> from there. >>>> >>>> Next: >>>> >>>> - Did you try to run "sudo ldconfig" [1] after installing leptonica? >>>> - If it does not work, than try to set LIBLEPT_HEADERSDIR (see >>>> ./configure --help) e.g. >>>> LIBLEPT_**HEADERSDIR=/usr/local/include/**leptonica >>>> ./configure >>>> >>>> >>>> If it does not help, send config.log (from tesseract-ocr) >>>> >>>> [1] >>>> http://code.google.com/p/**tesseract-ocr/wiki/ReadMe#**Linux<http://code.google.com/p/tesseract-ocr/wiki/ReadMe#Linux> >>>> >>>> -- >>>> Zdenko >>>> On Fri, Sep 21, 2012 at 11:08 PM, Osman Masood <[email protected]>wrote: >>>> >>>>> Hello everyone, >>>>> I'm trying to install leptonica 1.69 and Tesseract v3.01 using the >>>>> exact instructions found in their respective README files. Leptonica >>>>> installs without a problem; however, whenever I try to run ./configure >>>>> (even after running ./autogen.sh) it says: *configure: error: >>>>> leptonica library missing*. >>>>> These are the commands I'm using to install each, which are exactly in >>>>> accordance with the README/INSTALL files: >>>>> >>>>> For leptonica 1.69: >>>>> ./configure >>>>> make >>>>> sudo make install >>>>> >>>>> For Tesseract 3.01: >>>>> ./autogen.sh >>>>> ./configure >>>>> * > configure: error: leptonica library missing*. >>>>> >>>>> I'm really confused, can one of you gurus help me out? >>>>> Much thanks! >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "tesseract-ocr" group. >>>>> To post to this group, send email to [email protected] >>>>> >>>>> To unsubscribe from this group, send email to >>>>> tesseract-oc...@**googlegroups.com >>>>> >>>>> For more options, visit this group at >>>>> http://groups.google.com/**group/tesseract-ocr?hl=en<http://groups.google.com/group/tesseract-ocr?hl=en> >>>>> >>>> >>>> >>>> -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en

