[rt-users] mod_perl rpm and perl 5.8.4
Justin Clayton
justincl at u.washington.edu
Tue Jul 6 17:32:25 EDT 2004
As suspected, my perl does the Right Thing as well, and the 5.6.1 dirs
are not in my @INC. Could it be that both the apache and/or mod_perl
rpms were likely compiled to look at the 5.6.1 rpm? If this is true,
what do I need to recompile?
--Justin
david.falkenburger at rbc.com wrote:
> Issue command:
> perl -V
>
> and you should see the search path for libraries, mine has this:
> Characteristics of this binary (from libperl):
> Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
> PERL_IMPLICIT_CONTEXT
> Built under linux
> Compiled at Jun 18 2004 12:24:57
> @INC:
> /usr/local/lib/perl5/5.8.4/i686-linux-thread-multi
> /usr/local/lib/perl5/5.8.4
> /usr/local/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.8.4
> /usr/local/lib/perl5/site_perl
>
> When you installed the new perl it might have added in the old perl
> path so that you did not have to install all the packages again. If
> you don't add the old libraries into the search paths then you will
> have to reinstall all the packages and their dependencies.
>
> This might be your problem.
>
> Dave
>
> -----Original Message-----
> From: Justin Clayton [mailto:justincl at u.washington.edu]
> Sent: Tuesday, July 06, 2004 3:02 PM
> To: rt-users at lists.fsck.com
> Subject: [rt-users] mod_perl rpm and perl 5.8.4
>
>
> Hello,
>
> I just upgraded to RT 3.2.0 on my Red Hat Linux 7.3 box, and as a result
> had to compile a new version of perl (5.8.4) to comply with the new
> requirements. I use the apache-1.3.27-2 and mod_perl-1.26-5 rpms, but
> the compiled perl (the perl rpm is still installed). Even though I
> installed RT with the 5.8.4 perl, and have confirmed that version
> appears at the top of all RT-related files I've looked at so far, I
> still get errors like this in many places:
>
> Undefined subroutine &Scalar::Util::weaken called at
> /usr/local/pkgs/rt3/lib/RT/Action/Generic.pm line 85.
>
>
> Trace begun at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Exceptions.pm
> line 128
> HTML::Mason::Exceptions::rethrow_exception('Undefined subroutine
> &Scalar::Util::weaken called at
> /usr/local/pkgs/rt3/lib/RT/Action/Generic.pm line 85.^J') called at
> /usr/local/pkgs/rt3/lib/RT/Action/Generic.pm line 85
> RT::Action::Generic::_Init('RT::Action::CreateTickets=HASH(0x963dba4)')
> called at /usr/local/pkgs/rt3/lib/RT/Action/Generic.pm line 55
> RT::Action::Generic::new('RT::Action::CreateTickets') called at
> /usr/local/pkgs/rt3/share/html/Tools/Offline.html line 81
> HTML::Mason::Commands::__ANON__ at
> /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Component.pm line 133
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x94a771c)')
>
> called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 1056
> eval {...}('HTML::Mason::Component::FileBased=HASH(0x94a771c)') called
> at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 1050
> HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x9725b68)',
>
> 'HTML::Mason::Component::FileBased=HASH(0x94a771c)') called at
> /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 746
> HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x9725b68)')
>
> called at /usr/local/pkgs/rt3/share/html/autohandler line 199
> HTML::Mason::Commands::__ANON__ at
> /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Component.pm line 133
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x899b990)')
>
> called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 1051
> eval {...}('HTML::Mason::Component::FileBased=HASH(0x899b990)') called
> at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 1050
> HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x9725b68)',
>
> 'HASH(0x9611878)', 'HTML::Mason::Component::FileBased=HASH(0x899b990)')
> called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 332
> eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x9725b68)',
> 'HASH(0x9611878)', 'HTML::Mason::Component::FileBased=HASH(0x899b990)')
> called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 332
> eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x9725b68)',
> 'HASH(0x9611878)', 'HTML::Mason::Component::FileBased=HASH(0x899b990)')
> called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 292
> HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9725b68)')
>
> called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm
> line 134
> eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x9725b68)') called
> at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134
> HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9725b68)')
>
> called at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm
> line 783
> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x8df6f3c)',
>
> 'Apache=SCALAR(0x9622480)') called at /usr/local/pkgs/rt3/bin/webmux.pl
> line 145
> eval {...}('HTML::Mason::ApacheHandler=HASH(0x8df6f3c)',
> 'Apache=SCALAR(0x9622480)') called at /usr/local/pkgs/rt3/bin/webmux.pl
> line 145
> RT::Mason::handler('Apache=SCALAR(0x9622480)') called at /dev/null line 0
> eval {...}('Apache=SCALAR(0x9622480)') called at /dev/null line 0
>
> I've looked everywhere: what could possibly be looking at the wrong
> perl, and how do I tell it to stop? This is likely also what is causing
> my EX_TEMPFAIL errors on all mail sent through the mailgate.
>
--
Justin Clayton
VLSI Research System Administrator
University of Washington
Electrical Engineering Dept
justincl at u.washington.edu
206/543.2523 EE1 307E
More information about the rt-users
mailing list