threads / discuss / 4747

There you have it. Git.pm breaks pull.

Subject: There you have it. Git.pm breaks pull.

## tl;dr

4 messages between Jul 3, 2006 and Jul 3, 2006.

replies: 3people: 2as markdown or json

Johannes Schindelin· Jul 3, 2006, 04:35 UTC · lore
Hi,

I do not install git, but run it in place. And now git-pull, the core of git, is broken.

Can't locate Git.pm in @INC (@INC contains: /home/gene099/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at ./git-fmt-merge-msg line 14. BEGIN failed--compilation aborted at ./git-fmt-merge-msg line 14.

I have to run for work, but next thing I'll do with git is rewrite git-fmt-merge-msg in C.

Ciao, Dscho

Junio C Hamano· Jul 3, 2006, 04:42 UTC · re: Johannes Schindelin · lore

Re: There you have it. Git.pm breaks pull.

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 7 quoted lines
> Can't locate Git.pm in @INC (@INC contains: 
> /home/gene099/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi 
> /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0 
> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at 
> ./git-fmt-merge-msg line 14.
> BEGIN failed--compilation aborted at ./git-fmt-merge-msg line 14.

You need to set up your PERL5LIB appropriately, in addition to what you used to set: PATH and GIT_EXEC_PATH. Something like this, perhaps:

        PERL5LIB=`pwd`/perl/blib/lib:`pwd`/perl/blib/arch/auto/Git
        GIT_EXEC_PATH=`pwd`
        PATH=`pwd`:/usr/bin:/bin
        export GIT_EXEC_PATH PATH PERL5LIB
Junio C Hamano· Jul 3, 2006, 04:59 UTC · re: Junio C Hamano · lore

Re: There you have it. Git.pm breaks pull.

Junio C Hamano <junkio@cox.net> writes:
Show 14 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
>> Can't locate Git.pm in @INC (@INC contains: 
>> /home/gene099/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi 
>>...
> You need to set up your PERL5LIB appropriately, in addition to
> what you used to set: PATH and GIT_EXEC_PATH.  Something like
> this, perhaps:
>
>         PERL5LIB=`pwd`/perl/blib/lib:`pwd`/perl/blib/arch/auto/Git
>         GIT_EXEC_PATH=`pwd`
>         PATH=`pwd`:/usr/bin:/bin
>
>         export GIT_EXEC_PATH PATH PERL5LIB
... and I tested the above -- it works fine.

As we repeatedly discussed ever since we introduced GIT_EXEC_PATH, running without installation is something nonstandard and one would need to work a bit harder, like the above, to make it work, but the good thing is it can be made to work.

Johannes Schindelin· Jul 3, 2006, 08:39 UTC · re: Junio C Hamano · lore

Re: There you have it. Git.pm breaks pull.

Hi,
On Sun, 2 Jul 2006, Junio C Hamano wrote:
Show 12 quoted lines
> Junio C Hamano <junkio@cox.net> writes:
> 
> > Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> >
> >> Can't locate Git.pm in @INC (@INC contains: 
> >> /home/gene099/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi 
> >>...
> >
> >         PERL5LIB=`pwd`/perl/blib/lib:`pwd`/perl/blib/arch/auto/Git
> >         export PERL5LIB
> 
> ... and I tested the above -- it works fine.
Thank you. It works fine, here, too.

Ciao, Dscho

← back to recent threads