----- Original Message ----- 
From: "Ewen Marshall" <[EMAIL PROTECTED]>
.
.
>
> my($file) = "uploads/some_file.gif.or.jpg";
> use Image::Size;
> my($file_x, $file_y) = imgsize("$file");
>
> This gives me the following error when run on the server:
>
> Can't locate auto/Image/Size/jpegsize.al in @INC (@INC contains:
> /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
> /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.6.1/i386-linux 
> /usr/lib/perl5/vendor_perl/5.6.1
> /usr/lib/perl5/vendor_perl .) at Image/Size.pm line 210
>

This demonstrates that the module is being found and loaded ok, but the 
'jpegsize' function is not being found.

There's more to this module than Size.pm. When built correctly here's what 
gets installed (on Windows):

C:\_32\comp58_M\Image-Size-3.01>Build install
Installing C:\perl58_M\man\man1\imgsize.1
Installing C:\perl58_M\html\bin\imgsize.html
Installing C:\perl58_M\site\lib\auto\Image\Size\autosplit.ix
Installing C:\perl58_M\site\lib\auto\Image\Size\bmpsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\gifsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\jpegsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\mngsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\pcdsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\pngsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\ppmsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\psdsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\swfmxsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\swfsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\tiffsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\xbmsize.al
Installing C:\perl58_M\site\lib\auto\Image\Size\xpmsize.al
Installing C:\perl58_M\site\lib\Image\Size.pm
Installing C:\perl58_M\man\man3\Image.Size.3
Installing C:\perl58_M\html\site\lib\Image\Size.html
Installing C:\perl58_M\bin\imgsize
Installing C:\perl58_M\bin\imgsize.bat
Writing C:\perl58_M\site\lib\auto\Image\Size\.packlist

Those '.al' files are just plain text files, so if you like to upload them 
to the ./Image/Size folder on the server, then everything should work.

You'll probably be able to grab those files out of a ppm package - or if you 
like, I could zip 'em up and send them over to you (assuming you're using 
version 3.01). Let me know if you want me to do that.

It's quite likely you could have built and installed the module into your 
home directory on linux using the "PREFIX" option. See 'perldoc 
perlmodinstall' for details.

Cheers,
Rob



_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to