Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Image.pm not found

by vr (Curate)
on Jun 25, 2019 at 22:44 UTC ( [id://11101901]=note: print w/replies, xml ) Need Help??


in reply to Image.pm not found

Error reported at line 64 simply tells that Perl could not open a file at previous line, this has nothing to do with GD (i.e. broken installation). You either supplied an empty string (?) or file name which doesn't exist (and then redacted it from error message so as not to distract us, which you should not have done), or undefined value (uninitialised variable) happened as argument to GD::Image::new. In latter case, running your script with "-w" switch will produce some more warnings, unfortunately suppressed otherwise (GD::Image doesn't use warnings;. As I see, dying at line 64 was quite recent addition, too.)

Edit: note, "-w" enables warnings globally, and can potentially flood you with information not exactly related to narrow problem you are trying to solve.

Replies are listed 'Best First'.
Re^2: Image.pm not found
by linus8989 (Novice) on Jun 26, 2019 at 07:45 UTC

    Thank you for your help. Line #64 is sub create_image {

    I have the same error message on my new macOS 10.14.2 when I was building it from scratch. But after the following command "cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)" somehow the error was fixed. Unfortunately I cannot remember what I did (through so many trials and errors) so I cannot duplicate the success on my macbook (also the latest)

    I will see what I can do with your suggestion

    Just out of curiosity, is there anyway to just copy the entire folder (or folders) from my working mac and paste them to my new macbook? Hahaha... could be a silly question.

      OK, just try installing older GD: cpanm RURBAN/GD-2.65.tar.gz

        BRILLIANT!!!! Problem solved!!!! Wow, one would never know. Genius. Thank you!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found