SPUG: Perl upgrade broke mod_perl.

Colin Meyer cmeyer at helvella.org
Sun Mar 17 21:29:07 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.
> Since I personally use Perl but not mod_perl, and I'm accustomed to
> someone else administering Perl, I upgraded mod_perl in the hope that
> would fix it.  When that didn't work, I tried creating a symbolic link
> from 5.6.0 to 5.6.1, but that produced errors like these:

You'll need to reinstall mod_perl from scratch when upgrading Perl.
Typically this includes recompiling Apache as well, as mod_perl is
statically included in the httpd binary.  It looks like you may not
have done this, and httpd is looking for the older perl stuff still.

Be sure to use your new perl binary when running the 'perl Makefile.PL'
step for mod_perl.

mod_perl is a bit more difficult to install that most CPAN modules.  If
you've never done so before, then this will help:

There's alot there, so if you need a quick fix try:

Have fun,

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     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