I am totally a newbie with perl. I have been through trials and errors and got 2 iMac working for a perl program written for me. I am trying to migrate the working perl script to an older macbook (macOS 10.10.5 with perl 5.16) or a newer macbook pro (macOS 10.14 perl 5.18). Again after 2 days of trials and errors I failed to get it working. I am now stuck with the Image.pm not found error. ERROR Message: "not found: No such file or directory at /Library/Perl/5.18/darwin-thread-multi-2level/GD/Image.pm line 64." The file actually existed but not sure why it cannot be found.

Background:

1. I am using Spreadsheet::XLSX and GD modules

2. Image.pm is supposed to be generated by the GD module

3. I tried too many things: cpan, cpanm, sudo cpan, brew install, xcode, redirect the path, macports, etc.

4. The one that is working I was instructed to type "cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)"

Any help is appreciated. I apologize if I posted the wrong question here.

Note: above has been edited to look cleaner. Sorry for being unclear.

PROBLEM SOLVED: thank everyone! vr's solution of "cpanm RURBAN/GD-2.56.tar.gz" instantly solve all my problem. Thank you so much!


In reply to Image.pm not found by linus8989

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.