SPUG: Perl upgrade broke mod_perl.

Ben Reser ben at reser.org
Sun Mar 17 22:05:26 CST 2002


On Sun, Mar 17, 2002 at 04:50:21PM -0800, William Rowden wrote:
> Usually I happily use Perl and leave its administration to someone
> else.  Now, *I'm* the administrator, and I'm not certain where to
> look.
> 
> Without warning me, Red Hat's up2date daemon upgraded Perl from 5.6.0
> to 5.6.1 (never mind what the rest of the world uses).  This resulted
> in the following mod_perl errors upon restarting Apache:
> 
> 	[error] Can't locate strict.pm in @INC (@INC contains: /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 . /etc/httpd/ /etc/httpd/lib/perl) at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache.pm line 3.
> 	BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache.pm line 3.
> 	Compilation failed in require at (eval 1) line 3.

I think your mod_perl version needs to be compiled against your perl
version.  So rebuild mod_perl if you did it by hand or if you installed
an rpm go get an update (guessing you did it by hand because up2date
should have gotten a new version of mod_perl too if it updated perl).

Alternately if you have a backup of your 5.6.0 perl library files you
should be able to restore them and mod_perl should work.
(/usr/lib/perl5/5.6.0/... and /usr/lib/perl5/site_perl/5.6.0/... as a
guess from what the error shown above).

At any rate I strongly recommend people not run programs that install
updates for them.  It's one thing to have a program that tells you what
you need.  But upgrading things like perl requires some thought into how
it will effect your system.

-- 
Ben Reser <ben at reser.org>
http://ben.reser.org

What difference does it make to the dead, the orphans, and the homeless,
whether the mad destruction is wrought under the name of totalitarianism
or the holy name of liberty and democracy? - Ghandi

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org





More information about the spug-list mailing list