Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Error encountered while installing PDF::OCR2

by bobproct (Initiate)
on Apr 09, 2013 at 01:57 UTC ( #1027620=note: print w/ replies, xml ) Need Help??


in reply to Re: Error encountered while installing PDF::OCR2
in thread Error encountered while installing PDF::OCR2

I'm wanting to install PDF::OCR2. I got past the previous problem. Thanks very much to marto for mentioning my oversight of the Xpdf dependency.

I'm running on a Retina MacBook Pro (MacBookPro10,1) 16 GB with OS X 10.8.3.

Now I'm having a problem installing the Image::OCR::Tesseract dependency.

Here is my console:

Roberts-MacBook-Pro:Perl_Modules rproctor$ sudo cpanm PDF::OCR2 Password: --> Working on PDF::OCR2 Fetching http://search.cpan.org/CPAN/authors/id/L/LE/LEOCHARRE/PDF-OCR +2-1.21.tar.gz ... OK Configuring PDF-OCR2-1.21 ... OK ==> Found dependencies: Image::OCR::Tesseract --> Working on Image::OCR::Tesseract Fetching http://search.cpan.org/CPAN/authors/id/L/LE/LEOCHARRE/Image-O +CR-Tesseract-1.24.tar.gz ... OK Configuring Image-OCR-Tesseract-1.24 ... N/A ! Configure failed for Image-OCR-Tesseract-1.24. See /Users/rproctor/. +cpanm/build.log for details. ! Bailing out the installation for PDF-OCR2-1.21. Retry with --prompt +or --force. Roberts-MacBook-Pro:Perl_Modules rproctor$

Here is the build.log file

cpanm (App::cpanminus) 1.4008 on perl 5.012004 built for darwin-thread +-multi-2level Work directory is /Users/rproctor/.cpanm/work/1365451076.5809 You have make /usr/bin/make You have LWP 6.03 You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3 You have /usr/bin/unzip Searching Image::OCR::Tesseract on cpanmetadb ... --> Working on Image::OCR::Tesseract Fetching http://search.cpan.org/CPAN/authors/id/L/LE/LEOCHARRE/Image-O +CR-Tesseract-1.24.tar.gz -> OK Unpacking Image-OCR-Tesseract-1.24.tar.gz Entering Image-OCR-Tesseract-1.24 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.64) Configuring Image-OCR-Tesseract-1.24 Running Makefile.PL Cannot find convert executable. -> N/A -> FAIL Configure failed for Image-OCR-Tesseract-1.24. See /Users/rpro +ctor/.cpanm/build.log for details.

I looked around but didn't find any clue on whereabouts of 'convert'. Any suggestions for fixing this problem? Thanks.


Comment on Re^2: Error encountered while installing PDF::OCR2
Select or Download Code
Re^3: Error encountered while installing PDF::OCR2
by marto (Chancellor) on Apr 09, 2013 at 04:02 UTC
    Cannot find convert executable.

    The INSTALL file says:

    # INSTALL # ====== # # You will need to have accessible to perl the paths to executables: t +esseract and convert # You will need ImageMagick installed. # If the executables are not installed, testing will be incomplete, in +stallation will still take place.

    The documentation says:

    Included in this package is t/tesseract_install_helper.pl which will c +heck for packages needed.

    So you need to install the ImageMagick software for your platform.

      I'm wanting to install PSDF::OCR2. Thanks very much to marto for helping. I am having a problem installing the Image::OCR::Tesseract dependency and you suggested that I needed to install Image::Magick

      I'm now seeing an error when installing Image::Magick: Magick.xs:60:10: fatal error: 'magick/MagickCore.h' file not found

      A posting in StackOverflow http://stackoverflow.com/questions/12996578/how-to-tell-cpanm-imagemagick-about-header-location suggested "edit Makefile.PL (add header dir to includes)". Is that what should be done? What is the correct syntax for doing that?

      I don't have much experience doing this and appreciate any help.

      Here is my console:

      Roberts-MacBook-Pro:PerlMagick rproctor$ sudo cpanm Image::Magick Password: --> Working on Image::Magick Fetching http://search.cpan.org/CPAN/authors/id/J/JC/JCRISTY/PerlMagic +k-6.82.0.tar.gz ... OK Configuring PerlMagick-6.82.0 ... OK Building and testing Image-Magick-6.82 ... FAIL ! Installing Image::Magick failed. See /Users/rproctor/.cpanm/build.lo +g for details. Roberts-MacBook-Pro:PerlMagick rproctor$

      Here is the build.log file

      cpanm (App::cpanminus) 1.4008 on perl 5.012004 built for darwin-thread +-multi-2level Work directory is /Users/rproctor/.cpanm/work/1365508042.5742 You have make /usr/bin/make You have LWP 6.03 You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3 You have /usr/bin/unzip Searching Image::Magick on cpanmetadb ... --> Working on Image::Magick Fetching http://search.cpan.org/CPAN/authors/id/J/JC/JCRISTY/PerlMagic +k-6.82.0.tar.gz -> OK Unpacking PerlMagick-6.82.0.tar.gz Entering PerlMagick-6.82 META.yml not found or unparsable. Fetching META.yml from search.cpan.o +rg Configuring PerlMagick-6.82.0 Running Makefile.PL Checking if your kit is complete... Looks good Warning (mostly harmless): No library found for -lMagickCore-Q16 Warning (mostly harmless): No library found for -lperl Writing Makefile for Image::Magick Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.yml ... Finding PREREQ from Makefile ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.64) Building and testing Image-Magick-6.82 cp Magick.pm blib/lib/Image/Magick.pm AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick) /usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp -typemap /Sys +tem/Library/Perl/5.12/ExtUtils/typemap -typemap typemap Magick.xs > +Magick.xsc && mv Magick.xsc Magick.c clang -c -I/usr/local/include/ImageMagick -DMAGICKCORE_HDRI_ENABLE=0 +-DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"/usr/include/ +ImageMagick" -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARW +IN -fno-strict-aliasing -fstack-protector -I/usr/local/include -I/usr +/include/freetype2 -fopenmp -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_E +NABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -Os -DVERSION=\"6.82\" -DXS_V +ERSION=\"6.82\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2le +vel/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c clang: warning: argument unused during compilation: '-fopenmp' Magick.xs:60:10: fatal error: 'magick/MagickCore.h' file not found #include <magick/MagickCore.h> ^ 1 error generated. make: *** [Magick.o] Error 1 -> FAIL Installing Image::Magick failed. See /Users/rproctor/.cpanm/bu +ild.log for details.

      Any suggestions for fixing this problem?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2014-08-20 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls