Tags:
create new tag
view all tags
Hello,

I'm using the newest Beta TWiki20010720beta and have applied all fixes from CVS.

When I try to use TWiki I get errors like

Software error:

Can't locate Net/SMTP.pm in @INC (@INC contains: ../lib . 
/usr/lib/perl5/5.6.0/i586-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i586-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl) at ../lib/TWiki/Net.pm line 38.

on all pages. This is because the standard SuSE 7.2 Linux distribution has the Net::SMTP module not installed. However, from the comments in TWiki.cfg it seems to me, that such errors should not occur, because there is a fallback with direct calls to sendmail. Is this no longer the case?

The second problem I had, is that after installing I was unable to register. I tracked this down to an entry in TWikiPreferences where a SMTPMAILHOST is defined as "mail". This doesn't work because Twiki's Net.pm module cannot establish an SMTP connection in line 181

my $smtp = Net::SMTP->new( $mailhost );

The next call fails (it seems the $smtp wasn't checked before calling). It would be better to have this kind of setting in TWiki.cfg instead of TWikiPreferences, cause the latter is a TWiki page and should not be changed manually with an editor.

-- GuidoOstkamp - 29 Jul 2001

I have the same "Can't locate Net/SMTP.pm" problem with TWiki20010901 on MacOsX 10.0.4 (Darwin). Is this a configuration issue, or do I have to hack Net.pm?

Perhaps a solution is to fallback to sendmail when TWikiPreferences has SMTPMAILHOST set empty.

-- ToddJonker - 26 Sep 2001

This might be a shot in the dark.. but check the path that perl is using to find its libs. I had too versions of perl (5.6.0 & 5.6.1) installed on my box and didn't notice for a while. Configuration is RedHat 7.1 ,apache 3.2.1, TWiki20010901. I was getting:

Software error:

Can't locate Net/SMTP.pm in @INC (@INC 
contains: ../lib . /usr/lib/perl5/5.6.0/i386-linux 
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux 
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) 
at ../lib/TWiki/Net.pm line 38. 

I was putting the packages into the 5.6.1 directory.

After putting the Net::SMTP lib in the 5.6.0 directory, fixed all of my problems. Funny how that works ;)
-- EricMckenna - 26 Oct 2001

Have a look at my comment on SendmailPerlSmtpSwitch and see if you can install Net::SMTP - the CPAN tools will figure out all the dependencies.

-- RichardDonkin - 28 Oct 2001

It is now possible to select between Net::SMTP and sendmail. Details in SendmailPerlSmtpSwitch.

-- PeterThoeny - 03 Dec 2001

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2001-12-04 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.