mozilla-webtools_redhat_perl_version_gotcha

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



To: "Brendon Anderson" <banderson@hsminc.com>
From: Dave Miller <bugdude1@syndicomm.com>
Subject: Re: ldap and bugzilla
Date: Tue, 23 Oct 2001 18:54:39 -0400

On 10/23/01 5:38 PM -0500, Brendon Anderson wrote:

> I have installed the Directory SDK and the Perl LDAP modules.  I have
> verified their existence by looking for them.  The problem is, the @INC
> variable hasn't been updated to search in the appropriate locations where my
> modules are located.  Currently I'm running perl 5.6.1 and @INC points to
> 5.6.0 directories (so it would seem).  How can I update @INC to point to the
> appropriate directory?  It doesn't help to manually move the files to the
> directories in the path, by the way.

My guess is you're actually running Perl 5.6.0.  If you didn't explicitly
uninstall it, that's pretty easy to do on accident.

My RedHat box had Perl 5.005 preinstalled on it at /usr/bin/perl.  When I
used CPAN to update to Perl 5.6.0, it installed the new Perl at
/usr/local/bin/perl, but did not remove the executables at /usr/bin/perl*.
I then had the same problem you described above until I figured out what
was going on.  I ended up doing "rm /usr/bin/perl*" and then creating
symlinks at that location to the copies in /usr/local/bin.  This solved the
problem for me.

If you have a need to keep both versions of Perl around, you'll want to
make sure the "shebang" lines (#!) at the top of the cgi files all point at
the correct version.  (If you haven't altered them, they probably point to
/usr/bonsaitools/bin/perl, in which case you'll want to make sure your
bonsaitools symlink points to the right copy of Perl).

===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu