[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Perl can't find my libraries when run via the subversion post-commit script

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 3 Mar 2010 22:56:46 -0500

On Wed, Mar 3, 2010 at 3:15 PM, Craig Thayer <CThayer_at_sensorlogic.com> wrote:
> I am at a loss as to why my perl script cannot find my libraries when
> invoked by the subversion post-commit script. †My script runs just fine when
> invoked manually in a terminal window. †Iím aware that the subversion
> post-commit script runs with no environment defined, but the error Iím
> getting (below) makes no sense since the module perl claims it canít find
> (Log.pm) is, in fact, in the Ď/root/perl5/libí directory which is clearly
> listed in the @INC array.

Have you tried logging into the server as the user that runs
Subversion and tried running the Perl script as that user (and not as
part of the hook)? You might find the error when you try to execute as
the user that is running the Subversion server.

It is obvious that the Perl program is including the directories you
want to include in the @INC array, so the problem is not in the use
lib statements.

I wonder if there is a permission issue going on -- especially since
these are not standard Perl directories.

-- 
David Weintraub
qazwart_at_gmail.com
Received on 2010-03-04 04:57:21 CET

This is an archived mail posted to the Subversion Users mailing list.