git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: mlell@posteo.de
To: git@vger.kernel.org
Subject: Bug: Install from .tar.xz fails without write permission on /usr/local/share/man/man3
Date: Thu, 31 May 2018 18:30:18 +0200	[thread overview]
Message-ID: <d464115b7c2ee5f9084ae9bd33cebea1@posteo.de> (raw)

Hi,

I was trying to build git 2.9.5 as a normal user, as I have no root 
access on a cluster with outdated software.

The build fails, unless I change the PREFIX=/usr/local line in 
per/perl.mak:80 to a folder where I have write permission.
Apparently, perl.mak does not honour the --prefix= setting of 
./configure.

Is it possible to change perl.mak to honor the PREFIX?

Best,
Mo


Steps to reproduce:

wget 
https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz
tar xf git-2.9.5.tar.xz
cd git-2.9.5
./configure --prefix=$HOME/.usr
make
make install # fails

Output (last lines):

install -d -m 755 '/qg-10/data/AGR-QG/lell/.usr/share/locale'
(cd po/build/locale && gtar cf - .) | \
(cd '/qg-10/data/AGR-QG/lell/.usr/share/locale' && umask 022 && gtar xof 
-)
make -C perl prefix='/qg-10/data/AGR-QG/lell/.usr' DESTDIR='' install
make[1]: Entering directory 
`/qg-10/data/AGR-QG/lell/.usr/git-2.9.5/perl'
make[2]: Entering directory 
`/qg-10/data/AGR-QG/lell/.usr/git-2.9.5/perl'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/share/man/man3'
Do not have write permissions on '/usr/local/share/man/man3'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  at -e line 1.
make[2]: *** [pure_site_install] Error 13
make[2]: Leaving directory `/qg-10/data/AGR-QG/lell/.usr/git-2.9.5/perl'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/qg-10/data/AGR-QG/lell/.usr/git-2.9.5/perl'
make: *** [install] Error 2




             reply	other threads:[~2018-05-31 16:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-31 16:30 mlell [this message]
2018-05-31 18:33 ` Bug: Install from .tar.xz fails without write permission on /usr/local/share/man/man3 Christian Couder
2018-06-01  6:33 ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d464115b7c2ee5f9084ae9bd33cebea1@posteo.de \
    --to=mlell@posteo.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).