in reply to Re: Compilation failed in require at C:/mychoo/cg
in thread Compilation failed in require at C:/mychoo/cg

and if it's a case of can't find the require/use Perl script or module mentioned in line 21, then try adding the path to the folder the missing script resides in, to the list of INClude folders using use lib 'path/to/missing/script'; at the beginning of your script, prior to require/use statements. See lib. Note you add the folder the script resides in and not a filename. Alternatively require/use with full path to the script, e.g. require '/abc/xyz/somefile.pl'

Replies are listed 'Best First'.
Re^3: Compilation failed in require at C:/mychoo/cg
by traincity (Sexton) on Jun 22, 2019 at 15:50 UTC
    OK I now have an error notice missing image/magick.pm which I believe should be in strawberry. I skipped the mod_perl due to having problems with loading it. Would have this fixed the problem with strawberry? Still very confused but I am now thinking that I am going to keep getting these errors until I get the modules loaded somehow??? Thanks again for any help. I have learned a lot, but need to learn a whole lot more!!!

      "now have an error notice missing image/magick.pm which I believe should be in strawberry."

      It isn't. Familiarise yourself with the Strawberry Perl distribution. Perhaps if you explain your migration there may be more hints available, however it's usually just a case of installing the modules upon which your code depends.

      "Would have this fixed the problem with strawberry?"

      You've yet to post an actual problem with Strawberry perl. It just doesn't come with the things you believe it does.

      To install missing modules open a command prompt and type:

      cpanm Module::Name

      Substituting Module::Name for the name of the module you actually wish to install.

        Thanks... No it's not strawberry... It is me in that I don't know what I'm doing. I just tried this but:

        c:\Strawberry>cpanm module::Magick ! Finding module::Magick on cpanmetadb failed. ! Finding module::Magick () on mirror http://www.cpan.org failed. ! Couldn't find module or a distribution module::Magick

        So does that mean Magick doesn't exist, or did I do something wrong?? I tried it from c:\ also.... Is there a special perl command prompt that I should be using? Thanks!

      yep, keep adding those wagons to the engine till the passengers come home :) cool site!