On Thu, 2002-08-15 at 15:39, John Almberg wrote:
> Luckily this is a beginning perl list, because I'm sure this is a real
> beginners question . . .
> 
> I believe I have the Mail::Mailer module installed on my system because when
> I run 'perldoc Mail::Mailer' I get the documentation. However, when I try to
> 'use' the module, I get the following error message:
> 
> [Thu Aug 15 12:08:27 2002] Mailer.pm: Can't locate Mail/Mailer.pm in @INC
> (@INC contains: /usr/lib/perl5/i686-linux/5.00401 /usr/lib/perl5
> /usr/lib/perl5/site_perl/i686-linux /usr/lib/perl5/site_perl .) at
> support.cgi line 6. BEGIN failed--compilation aborted at support.cgi line 6.
> 
> I know how to change the @INC search path, but I'll be darned if I can find
> the path to the Mailer module. I've tried using find as follows:
> 
> find `perl -e 'print "@INC"'` -name '*.pm' -print |grep 'Mailer'
> 
> but believe this is just looking in the same @INC path, so no surprise that
> it can't find it, either. Any other ideas???
> 
> Thanks!
> 
> -- John

Try

slocate Mailer.pm

If it does not find something like

/usr/lib/perl5/site_perl/5.6.1/Mail/Mailer.pm

Then you do not have the module installed.  Try

slocate Mail::Mailer

if you get 

/usr/share/man/man3/Mail::Mailer.3pm

then you have the manpage (which is what perldoc is finding).



If you have the module, but it is not in the paths specified by @INC
then you can say (using my examples)

use lib '/usr/lib/perl5/site_perl/5.6.1';

in your perl code and find it.

If you don't have the module then you need to run

perl -MCPAN -e 'install Mail::Mailer'



-- 
Today is Boomtime the 8th day of Bureaucracy in the YOLD 3168
You are what you see.

Missile Address: 33:48:3.521N  84:23:34.786W


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to