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

Installing Image::Magick failed

On Strawberry Perl, the following command should install Image::Magick:
ppm install Image::Magick
Please let me know if it doesn't. The command might need to be tweaked if your version of Strawberry Perl is a few years old.
(For me, the installation terminates with a "cannot remove directory for ..." message. I think that's not a problem.)

Cheers,
Rob

Replies are listed 'Best First'.
Re^9: Compilation failed in require at C:/mychoo/cg
by traincity (Sexton) on Jun 24, 2019 at 21:31 UTC
    Thanks very much. I did miss that post. Sorry. OK although I got this message:
    Installing C:\STRAWB~1\perl\site\lib\Image\Magick.pm cannot remove directory for C:\Users\USER\.ppm/Image-Magick-5488: Permission denied at C:/Strawberry/perl/vendor/lib/PPM.pm line 490.

    It seemed to have worked as I ran the script again and it passed on to another error. So it looks like Magick is installed?? (I think!)

      cannot remove directory for C:\Users\USER\.ppm/Image-Magick-5488: Permission denied

      That's kind of strange. Have you been running some commands as Administrator and others as a normal user? It'd be best to run all the installations under a single user.

      So it looks like Magick is installed?? (I think!)

      One way to check whether a module is installed is just perl -MModule::Name -e "" on the command line - however, this requires that the command line has the same environment variables set as the web server (such as PERL5LIB). They could be different if, for example, your web server is started via a batch file that sets an environment variable, or if you have environment variables configured in your Apache configuration (e.g. SetEnv directives) that only the CGI scripts run by the web server see.