threads / discuss / 22417

make install error

Subject: make install error

## tl;dr

6 messages between Jan 28, 2010 and Jan 28, 2010.

replies: 5people: 3as markdown or json

kap4lin· Jan 28, 2010, 00:58 UTC · lore
Hi,
(Kindly Cc me, I am not subscribed)

Process followed: $ make configure $ ./configure --prefix=/scratch/kap4lin/usr $ make all $ make install

The make install step is giving the following error:
make -C templates DESTDIR='' install
make[1]: Entering directory `/scratch/kap4lin/softwares/git-1.6.6.1/templates'
install -d -m 755 '/scratch/kap4lin/usr/share/git-core/templates'
(cd blt && gtar cf - .) | \
        (cd '/scratch/kap4lin/usr/share/git-core/templates' && umask
022 && gtar xof -)
gtar: This does not look like a tar archive
gtar: Skipping to next header
gtar: Archive contains obsolescent base-64 headers
gtar: Error exit delayed from previous errors
make[1]: *** [install] Error 2
make[1]: Leaving directory `/scratch/kap4lin/softwares/git-1.6.6.1/templates'
make: *** [install] Error 2
Any help?
-- 
Regards
Kap4Lin
--------------------------------------
http://counter.li.org  #402424
Junio C Hamano· Jan 28, 2010, 02:53 UTC · re: kap4lin · lore

Re: make install error

kap4lin <kap4lin@gmail.com> writes:
Show 12 quoted lines
> (cd blt && gtar cf - .) | \
>         (cd '/scratch/kap4lin/usr/share/git-core/templates' && umask
> 022 && gtar xof -)
> gtar: This does not look like a tar archive
> gtar: Skipping to next header
> gtar: Archive contains obsolescent base-64 headers
> gtar: Error exit delayed from previous errors
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/scratch/kap4lin/softwares/git-1.6.6.1/templates'
> make: *** [install] Error 2
>
> Any help?
Perhaps "unset CDPATH".

Also look for "export CDPATH" in your .bash_profile and remove it (and either remove CDPATH=... from your .bashrc or make it conditional only to interactive sessions). Setting CDPATH for non-interactive sessions does not make any sense and asking for troubles.

Alex Riesen· Jan 28, 2010, 08:48 UTC · re: Junio C Hamano · lore

Re: make install error

On Thu, Jan 28, 2010 at 03:53, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> kap4lin <kap4lin@gmail.com> writes:
>
>> (cd blt && gtar cf - .) | \
>>         (cd '/scratch/kap4lin/usr/share/git-core/templates' && umask
>> 022 && gtar xof -)
>> gtar: This does not look like a tar archive
>
> Perhaps "unset CDPATH".
>

BTW, will "cd ./blt &>/dev/null" also help and prevent this problem from happening ever again?

Junio C Hamano· Jan 28, 2010, 08:56 UTC · re: Alex Riesen · lore

Re: make install error

Alex Riesen <raa.lkml@gmail.com> writes:
Show 13 quoted lines
> On Thu, Jan 28, 2010 at 03:53, Junio C Hamano <gitster@pobox.com> wrote:
>> kap4lin <kap4lin@gmail.com> writes:
>>
>>> (cd blt && gtar cf - .) | \
>>>         (cd '/scratch/kap4lin/usr/share/git-core/templates' && umask
>>> 022 && gtar xof -)
>>> gtar: This does not look like a tar archive
>>
>> Perhaps "unset CDPATH".
>>
>
> BTW, will "cd ./blt &>/dev/null" also help and prevent this problem from
> happening ever again?

Except that (1) it would be ">/dev/null", and (2) why contaminate Makefile command lines with such unreadability to work around stupid misdesign of CDPATH?

I _could_ live with something like this that won't affect the main part of the Makefile, though.

 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index af08c8f..20b0b34 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
 # The default target of this Makefile is...
 all::
 
+# Work around CDPATH exported to the environment that would
+# break "(cd there && tar cf - ) | tar xf -" and the like.
+CDPATH :=
+
 # Define V=1 to have a more verbose compile.
 #
 # Define SHELL_PATH to a POSIX shell if your /bin/sh is broken.
Alex Riesen· Jan 28, 2010, 10:27 UTC · re: Junio C Hamano · lore

Re: make install error

On Thu, Jan 28, 2010 at 09:56, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Alex Riesen <raa.lkml@gmail.com> writes:
>>
>> BTW, will "cd ./blt &>/dev/null" also help and prevent this problem from
>> happening ever again?
>
> Except that (1) it would be ">/dev/null", and (2) why contaminate Makefile
> command lines with such unreadability to work around stupid misdesign of
> CDPATH?
Eh... Right :)
kap4lin· Jan 28, 2010, 16:25 UTC · re: Junio C Hamano · lore

Re: make install error

Hi,
(Kindly Cc me, thanks.)
On Wed, Jan 27, 2010 at 9:53 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
> kap4lin <kap4lin@gmail.com> writes:
>
>> (cd blt && gtar cf - .) | \
>>         (cd '/scratch/kap4lin/usr/share/git-core/templates' && umask
>> 022 && gtar xof -)
>> gtar: This does not look like a tar archive
>> gtar: Skipping to next header
>> gtar: Archive contains obsolescent base-64 headers
>> gtar: Error exit delayed from previous errors
>> make[1]: *** [install] Error 2
>> make[1]: Leaving directory `/scratch/kap4lin/softwares/git-1.6.6.1/templates'
>> make: *** [install] Error 2
>>
>> Any help?
>
> Perhaps "unset CDPATH".
Thanks. This solved the issue. I'll make a note of this in future.
-- 
Regards
Kap4Lin
--------------------------------------
http://counter.li.org  #402424

← back to recent threads