[rt-users] Problem with require (Log::Dispatch::Screen etc)

Alexander Bostrom abo at kth.se
Tue Jun 17 15:55:58 EDT 2003


Hello,

I'm trying to install (from source, using MySQL from the distro) Perl
5.8.0, Apache 1.3.27, mod_perl 1.27 and RT 3.0.2 under Red Hat Linux 9, but
I can't get it to work. Pointing a browser at the server results in
"Internal Server Error". This is what I get in the log:

  # tail -4 apache/logs/error_log 
  [Tue Jun 17 19:20:04 2003] [notice] Apache/1.3.27 (Unix) mod_perl/1.27 configured -- resuming normal operations
  [Tue Jun 17 19:20:04 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
  [Tue Jun 17 19:21:48 2003] [error] Can't locate Log/Dispatch/Screen.pm in @INC (@INC contains: /usr/local/apache/lib/perl /usr/local/apache/ . /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/rt3/lib /usr/local/rt3/local/lib /usr/local/rt3/local/lib /usr/local/rt3/lib /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl . /usr/local/apache/ /usr/local/apache/lib/perl) at /usr/local/rt3/lib/RT.pm line 185.

Of course, Log/Dispatch/Screen.pm is there:

  # ls -l /usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/Screen.pm
  -r--r--r--    1 root     bin          2918 Jun 15 17:24 /usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/Screen.pm

So I'm stuck...

Putting the require commands in lib/RT.pm inside BEGIN blocks or disabling
logging in RT_SiteConfig.pm only delays to some other require commands in
some other module:

  error:   Can't locate Apache/Session/MySQL.pm in @INC (@INC contains: /usr/local/apache/lib/perl /usr/local/apache/ . /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/rt3/lib /usr/local/rt3/local/lib /usr/local/rt3/local/lib /usr/local/rt3/lib /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl . /usr/local/apache/ /usr/local/apache/lib/perl) at /usr/local/rt3/share/html/Elements/SetupSessionCookie line 32.

  context: 
  ... 
  28:  Pg => 'Apache::Session::Postgres',
  29:  Oracle => 'Apache::Session::Oracle',
  30:  );
  31:  my $session_class = $backends{$RT::DatabaseType} || 'Apache::Session::File';
  32:  my $pm = "$session_class.pm"; $pm =~ s|::|/|g; require $pm;
  33: 
  34:  eval {
  35:  tie %session, $session_class,
  36:  $SessionCookie || ( $cookies{'RT_SID'} ? $cookies{'RT_SID'}->value() : undef ),
  ... 

  code stack:  /usr/local/rt3/share/html/Elements/SetupSessionCookie:32
  /usr/local/rt3/share/html/autohandler:46

I ran '.../sbin/rt-test-dependencies --with-mysql --with-modperl1 --install'
and the CPAN 'prerequisites_policy' was set to 'follow', so I suppose there
shouldn't be any missing modules.

Thanks,
/Alexander



More information about the rt-users mailing list