[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] loading CPAN modules




This may have came up before.

What is the proper way to load a module download from CPAN?

In particular, I'm having problem with Image::Size. I simply
created a folder "Image" and placed Size.pm in it, and have the 
path setup correctly. But when I run "use Image::Size", I get

# Subroutine imgsize redefined.
File 'user347:T2:perl_files_dir:perlModules_dir:Image:Size.pm'; Line 277
# Subroutine html_imgsize redefined.
File 'user347:T2:perl_files_dir:perlModules_dir:Image:Size.pm'; Line 363
# Subroutine attr_imgsize redefined.
File 'user347:T2:perl_files_dir:perlModules_dir:Image:Size.pm'; Line 372
# Subroutine img_eof redefined.
File 'user347:T2:perl_files_dir:perlModules_dir:Image:Size.pm'; Line 382
# Can't locate auto/Image/Size/jpegsize.al in @INC.
File 'app407:apps:progaming:MacPerl D:lib:AutoLoader.pm'; Line 38

File 'user347:T2:perl_files_dir:perlModules_dir:Image:Size.pm'; Line 343

It looks like the file isn't loaded correctly. (or, why is it
redefining subroutines anyway?) What can I do?

Sorry for this dumb question. I looked at my web resources (FAQ...etc) but
couldn't find answer. (btw, I've never used a downloaded module on
unix box or mac. I may be missing the obvious)

(I have converted the line breaks in Size.pm (MacPerl was
complaining about module not returning a true value.))

A related question: What's the fuzz about make and install on
unix boxes? Isn't it as simple as putting the module in the
right place and set the right load path?

 Xah, xah@best.com
 http://www.best.com/~xah/PageTwo_dir/more.html
 Mountain View, CA, USA

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch