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?


In reply to Re^4: Error encountered while installing PDF::OCR2 by bobproct
in thread Error encountered while installing PDF::OCR2 by bobproct

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.