From unknown Thu Jun 19 14:03:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66111 <66111@debbugs.gnu.org> To: bug#66111 <66111@debbugs.gnu.org> Subject: Status: is there a problem with --prefix? Reply-To: bug#66111 <66111@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:03:06 +0000 retitle 66111 is there a problem with --prefix? reassign 66111 emacs submitter 66111 Ambrose Kofi Laing severity 66111 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 19 21:40:19 2023 Received: (at submit) by debbugs.gnu.org; 20 Sep 2023 01:40:19 +0000 Received: from localhost ([127.0.0.1]:57964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qimCP-0001jz-E2 for submit@debbugs.gnu.org; Tue, 19 Sep 2023 21:40:19 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qif1M-00062a-3G for submit@debbugs.gnu.org; Tue, 19 Sep 2023 14:00:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qif16-0005fJ-TP for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2023 14:00:08 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qif0m-0001Sw-VH for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2023 14:00:08 -0400 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50336768615so1145667e87.0 for ; Tue, 19 Sep 2023 10:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695146378; x=1695751178; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=NRwNF0W/zUL2o0iRMmEdeCNb9AYHTcuyeILh5598HJk=; b=TcgtsHOe7DpCpDdu4I8VfAWHVo1lNBh3urvVFSzkg6hGnAk0J4qRswC3O4Xj+XvXEf bBHg0o0RneTzJg+GG79wKQdGssgO6rOaunnT6gQfbVwUq3ss9aD/Gj5WbMbOdRmDUng+ mGRURj2+OrbO0NoTXq/1xuRTc4AxH4tRCVIhDW3SaFsmP9obSsI9QLJq7vWwdWhyUvyg k8iZPcVuOQ+d8pK3kRzcPVRcR5RstWqaQZ/gJif+mnyuKALO52xIGLoqCzu21PlFYN2+ WvIWI2qWP0/wZ64IncLzcw+85kDepPC9KvAh1aJ0NbThGvd96UgQKrT5AjR5+bKEYfK1 JnDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695146378; x=1695751178; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NRwNF0W/zUL2o0iRMmEdeCNb9AYHTcuyeILh5598HJk=; b=cs1UTNncOg3KMJHOYjFJEScqH0PcCsSrE+Ci7NVdQscY63rbg9xhqFLYVSFnwcRy83 PGPHNs6B1vyM/Nylk5WSnxqA9JSMK01umtrNwImdKHyIwGcu4qsv+fAcSJ818Gjm8WlU j4Q/ULzJGDv2VLAa3j3mwJbykNXRLVJD0CyUfZvNyutrPJepwrXfkk1GTEr7fc5hPe4Q QnXViXg/JxUn+oICVeINMrsALSgBj2f1WCTqGrqSvtVlXlkUAu4G1YCBUCbk6JEA7y+q QBRjOP2n9eSXj5U1bKf6K8BTm4rS4S8rFsBbugkV1sHGVWn8787qsLr/tCUUooC5QNX1 ISQw== X-Gm-Message-State: AOJu0YzpNGm07N08eIMcS7SSomyp3qwUVq0rXeDEkxAMD1u+kxH/hz78 jHBTqwkbaq1/psklWPh2oc5GyxxYZL4OPGuRq7iUThdptzY= X-Google-Smtp-Source: AGHT+IFr2snFwzCpKaxPMQ4na6QXuiN1d4g+2SUJMgHhf6Kk55M5rAQuxmJZPNH403b14BfU6Jg4HoDAmGIUvSfAxRI= X-Received: by 2002:a19:5f18:0:b0:500:953b:d112 with SMTP id t24-20020a195f18000000b00500953bd112mr394734lfb.27.1695146377915; Tue, 19 Sep 2023 10:59:37 -0700 (PDT) MIME-Version: 1.0 From: Ambrose Kofi Laing Date: Tue, 19 Sep 2023 13:59:26 -0400 Message-ID: Subject: is there a problem with --prefix? To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000b2b15e0605ba054d" Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=aklaing@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 19 Sep 2023 21:40:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --000000000000b2b15e0605ba054d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I'm trying to install emacs_29.1 at a nonstandard location, with the following commands: cd src/emacs-29.1 > ./autogen.sh > ./configure --prefix=3D/home/myname/my/custom/emacs29 > --with-native-compilation=3Daot --with-imagemagick --with-json > --with-tree-sitter --with-xft --without-compress-install > make -j 4 and I get an error message because of permission denied while trying to write under /usr/local (that is where the script stops). In addition, there are two locations where it says the following: make -C src BIN_DESTDIR=3D''/usr/local/bin/'' \ ELN_DESTDIR=3D'/usr/local/lib/emacs/29.1/' all And I don't think it should be trying to put anything under those two directories? This happens twice (please see below the ps under my signature for the full transcript of "make install" to see the exact context in which it happens). It seems to be that the --prefix does not override certain locations that it is supposed to? Are there other variables I need to set (other than the --prefix option to configure) that will ensure that the compilation and installation will not try to write under /usr/local ? Thanks for any pointers, Ambrose ps. myhost:emacs-29.1$ make install > make -C lib all > make[1]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lib' > make[1]: Nothing to be done for 'all'. > make[1]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lib' > make -C lib-src all > make[1]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lib-src' > make[1]: Nothing to be done for 'all'. > make[1]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lib-src' > make -C src BIN_DESTDIR=3D''/usr/local/bin/'' \ > ELN_DESTDIR=3D'/usr/local/lib/emacs/29.1/' all > make[1]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/src' > make -C ../admin/charsets all > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make[2]: Nothing to be done for 'all'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make -C ../admin/unidata charscript.el > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make[2]: Nothing to be done for 'charscript.el'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make -C ../admin/unidata emoji-zwj.el > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make[2]: Nothing to be done for 'emoji-zwj.el'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make -C ../admin/unidata all EMACS=3D"../../src/bootstrap-emacs" > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make[2]: Nothing to be done for 'all'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make -C ../admin/charsets cp51932.el > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make[2]: Nothing to be done for 'cp51932.el'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make -C ../admin/charsets eucjp-ms.el > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make[2]: Nothing to be done for 'eucjp-ms.el'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make[1]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/src' > make -C lisp all > make[1]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp' > make -C ../leim all EMACS=3D"../src/emacs" > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/leim' > make[2]: Nothing to be done for 'all'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/leim' > make -C ../admin/grammars all EMACS=3D"../../src/emacs" > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/grammars' > make[2]: Nothing to be done for 'all'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/grammars' > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp' > make[2]: Nothing to be done for 'compile-targets'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp' > GEN autoloads > INFO Scraping files for loaddefs... > INFO Scraping files for loaddefs...done > INFO Scraping files for loaddefs... > INFO Scraping files for loaddefs...done > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp' > make[2]: Nothing to be done for 'compile-targets'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp' > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/leim' > make[2]: Nothing to be done for 'generate-ja-dic'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/leim' > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp' > make[2]: Nothing to be done for 'compile-targets'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp' > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/misc' > make[2]: 'org.texi' is up to date. > make[2]: 'modus-themes.texi' is up to date. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/misc' > make[1]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp' > make -C doc/lispref info > make[1]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/lispref' > make[1]: Nothing to be done for 'info'. > make[1]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/lispref' > make -C doc/lispintro info > make[1]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/lispintro' > make[1]: Nothing to be done for 'info'. > make[1]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/lispintro' > make -C doc/emacs info > make[1]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/emacs' > make[1]: Nothing to be done for 'info'. > make[1]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/emacs' > make -C doc/misc info > make[1]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/misc' > make[1]: Nothing to be done for 'info'. > make[1]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/misc' > make -C src BIN_DESTDIR=3D''/usr/local/bin/'' > ELN_DESTDIR=3D'/usr/local/lib/emacs/29.1/' > make[1]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/src' > make -C ../admin/charsets all > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make[2]: Nothing to be done for 'all'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make -C ../admin/unidata charscript.el > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make[2]: Nothing to be done for 'charscript.el'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make -C ../admin/unidata emoji-zwj.el > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make[2]: Nothing to be done for 'emoji-zwj.el'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make -C ../admin/unidata all EMACS=3D"../../src/bootstrap-emacs" > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make[2]: Nothing to be done for 'all'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata' > make -C ../admin/charsets cp51932.el > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make[2]: Nothing to be done for 'cp51932.el'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make -C ../admin/charsets eucjp-ms.el > make[2]: Entering directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make[2]: Nothing to be done for 'eucjp-ms.el'. > make[2]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets' > make[1]: Leaving directory > '/home/myname/my/custom/emacs29/src/emacs-29.1/src' > umask 022; /usr/bin/mkdir -p "/usr/local/share/info" > /usr/bin/mkdir: cannot create directory =E2=80=98/usr/local/share/info=E2= =80=99: > Permission denied > make: *** [Makefile:779: install-info] Error 1 > myhost:emacs-29.1$ --000000000000b2b15e0605ba054d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I'm trying to install emacs_29.1 a= t a nonstandard location, with the following commands:

=
cd src/emacs-29.1
./au= togen.sh
./configure --prefix=3D/home/myname/my/custom/emacs29 --with-na= tive-compilation=3Daot --with-imagemagick --with-json --with-tree-sitter --= with-xft --without-compress-install
make -j 4

and I get an error message because of permission denied while trying = to write under /usr/local (that is where the script stops).=C2=A0 In additi= on, there are two locations where it says the following:

make -C src BIN_DESTDIR=3D''/usr/local/bin/'' \
= ELN_DESTDIR=3D'/usr/local/lib/emacs/29.1/' all

<= /div>
And I don't think it should be trying to put anything under t= hose two directories?

This happens twice=C2=A0(ple= ase see below the ps under my signature for the full transcript of "ma= ke install" to see the exact context in which it happens).=C2=A0 It se= ems to be that the --prefix does not override certain locations that it is = supposed to?

Are there other variables I need to s= et (other than the --prefix option to configure) that will ensure that the = compilation and installation will not try to write under /usr/local ?
=

Thanks for any pointers,

Ambro= se

ps.

myhost:emacs-29.1$ make install
make -C= lib all
make[1]: Entering directory '/home/myname/my/custom/emacs29= /src/emacs-29.1/lib'
make[1]: Nothing to be done for 'all'.<= br>make[1]: Leaving directory '/home/myname/my/custom/emacs29/src/emacs= -29.1/lib'
make -C lib-src all
make[1]: Entering directory '/= home/myname/my/custom/emacs29/src/emacs-29.1/lib-src'
make[1]: Nothi= ng to be done for 'all'.
make[1]: Leaving directory '/home/m= yname/my/custom/emacs29/src/emacs-29.1/lib-src'
make -C src BIN_DEST= DIR=3D''/usr/local/bin/'' \
ELN_DESTDIR=3D'/usr/lo= cal/lib/emacs/29.1/' all
make[1]: Entering directory '/home/myna= me/my/custom/emacs29/src/emacs-29.1/src'
make -C ../admin/charsets a= ll
make[2]: Entering directory '/home/myname/my/custom/emacs29/src/e= macs-29.1/admin/charsets'
make[2]: Nothing to be done for 'all&#= 39;.
make[2]: Leaving directory '/home/myname/my/custom/emacs29/src/= emacs-29.1/admin/charsets'
make -C ../admin/unidata charscript.elmake[2]: Entering directory '/home/myname/my/custom/emacs29/src/emacs-= 29.1/admin/unidata'
make[2]: Nothing to be done for 'charscript.= el'.
make[2]: Leaving directory '/home/myname/my/custom/emacs29/= src/emacs-29.1/admin/unidata'
make -C ../admin/unidata emoji-zwj.el<= br>make[2]: Entering directory '/home/myname/my/custom/emacs29/src/emac= s-29.1/admin/unidata'
make[2]: Nothing to be done for 'emoji-zwj= .el'.
make[2]: Leaving directory '/home/myname/my/custom/emacs29= /src/emacs-29.1/admin/unidata'
make -C ../admin/unidata all EMACS=3D= "../../src/bootstrap-emacs"
make[2]: Entering directory '/= home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata'
make[2]:= Nothing to be done for 'all'.
make[2]: Leaving directory '/= home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata'
make -C = ../admin/charsets cp51932.el
make[2]: Entering directory '/home/myna= me/my/custom/emacs29/src/emacs-29.1/admin/charsets'
make[2]: Nothing= to be done for 'cp51932.el'.
make[2]: Leaving directory '/h= ome/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets'
make -C = ../admin/charsets eucjp-ms.el
make[2]: Entering directory '/home/myn= ame/my/custom/emacs29/src/emacs-29.1/admin/charsets'
make[2]: Nothin= g to be done for 'eucjp-ms.el'.
make[2]: Leaving directory '= /home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets'
make[1= ]: Leaving directory '/home/myname/my/custom/emacs29/src/emacs-29.1/src= '
make -C lisp all
make[1]: Entering directory '/home/myname/= my/custom/emacs29/src/emacs-29.1/lisp'
make -C ../leim all EMACS=3D&= quot;../src/emacs"
make[2]: Entering directory '/home/myname/my= /custom/emacs29/src/emacs-29.1/leim'
make[2]: Nothing to be done for= 'all'.
make[2]: Leaving directory '/home/myname/my/custom/e= macs29/src/emacs-29.1/leim'
make -C ../admin/grammars all EMACS=3D&q= uot;../../src/emacs"
make[2]: Entering directory '/home/myname/= my/custom/emacs29/src/emacs-29.1/admin/grammars'
make[2]: Nothing to= be done for 'all'.
make[2]: Leaving directory '/home/myname= /my/custom/emacs29/src/emacs-29.1/admin/grammars'
make[2]: Entering = directory '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp'
m= ake[2]: Nothing to be done for 'compile-targets'.
make[2]: Leavi= ng directory '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp'=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0autoloads
=C2=A0 INFO =C2=A0 =C2=A0 Scr= aping files for loaddefs...
=C2=A0 INFO =C2=A0 =C2=A0 Scraping files fo= r loaddefs...done
=C2=A0 INFO =C2=A0 =C2=A0 Scraping files for loaddefs.= ..
=C2=A0 INFO =C2=A0 =C2=A0 Scraping files for loaddefs...done
make= [2]: Entering directory '/home/myname/my/custom/emacs29/src/emacs-29.1/= lisp'
make[2]: Nothing to be done for 'compile-targets'.
= make[2]: Leaving directory '/home/myname/my/custom/emacs29/src/emacs-29= .1/lisp'
make[2]: Entering directory '/home/myname/my/custom/ema= cs29/src/emacs-29.1/leim'
make[2]: Nothing to be done for 'gener= ate-ja-dic'.
make[2]: Leaving directory '/home/myname/my/custom/= emacs29/src/emacs-29.1/leim'
make[2]: Entering directory '/home/= myname/my/custom/emacs29/src/emacs-29.1/lisp'
make[2]: Nothing to be= done for 'compile-targets'.
make[2]: Leaving directory '/ho= me/myname/my/custom/emacs29/src/emacs-29.1/lisp'
make[2]: Entering d= irectory '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/misc'make[2]: 'org.texi' is up to date.
make[2]: 'modus-themes.= texi' is up to date.
make[2]: Leaving directory '/home/myname/my= /custom/emacs29/src/emacs-29.1/doc/misc'
make[1]: Leaving directory = '/home/myname/my/custom/emacs29/src/emacs-29.1/lisp'
make -C doc= /lispref info
make[1]: Entering directory '/home/myname/my/custom/em= acs29/src/emacs-29.1/doc/lispref'
make[1]: Nothing to be done for &#= 39;info'.
make[1]: Leaving directory '/home/myname/my/custom/ema= cs29/src/emacs-29.1/doc/lispref'
make -C doc/lispintro info
make[= 1]: Entering directory '/home/myname/my/custom/emacs29/src/emacs-29.1/d= oc/lispintro'
make[1]: Nothing to be done for 'info'.
mak= e[1]: Leaving directory '/home/myname/my/custom/emacs29/src/emacs-29.1/= doc/lispintro'
make -C doc/emacs info
make[1]: Entering directory= '/home/myname/my/custom/emacs29/src/emacs-29.1/doc/emacs'
make[= 1]: Nothing to be done for 'info'.
make[1]: Leaving directory &#= 39;/home/myname/my/custom/emacs29/src/emacs-29.1/doc/emacs'
make -C = doc/misc info
make[1]: Entering directory '/home/myname/my/custom/em= acs29/src/emacs-29.1/doc/misc'
make[1]: Nothing to be done for '= info'.
make[1]: Leaving directory '/home/myname/my/custom/emacs2= 9/src/emacs-29.1/doc/misc'
make -C src BIN_DESTDIR=3D''/usr/= local/bin/'' ELN_DESTDIR=3D'/usr/local/lib/emacs/29.1/'
= make[1]: Entering directory '/home/myname/my/custom/emacs29/src/emacs-2= 9.1/src'
make -C ../admin/charsets all
make[2]: Entering director= y '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets'make[2]: Nothing to be done for 'all'.
make[2]: Leaving directo= ry '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/charsets'make -C ../admin/unidata charscript.el
make[2]: Entering directory = 9;/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata'
make[= 2]: Nothing to be done for 'charscript.el'.
make[2]: Leaving dir= ectory '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata'= ;
make -C ../admin/unidata emoji-zwj.el
make[2]: Entering directory &= #39;/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata'
mak= e[2]: Nothing to be done for 'emoji-zwj.el'.
make[2]: Leaving di= rectory '/home/myname/my/custom/emacs29/src/emacs-29.1/admin/unidata= 9;
make -C ../admin/unidata all EMACS=3D"../../src/bootstrap-emacs&= quot;
make[2]: Entering directory '/home/myname/my/custom/emacs29/sr= c/emacs-29.1/admin/unidata'
make[2]: Nothing to be done for 'all= '.
make[2]: Leaving directory '/home/myname/my/custom/emacs29/sr= c/emacs-29.1/admin/unidata'
make -C ../admin/charsets cp51932.el
= make[2]: Entering directory '/home/myname/my/custom/emacs29/src/emacs-2= 9.1/admin/charsets'
make[2]: Nothing to be done for 'cp51932.el&= #39;.
make[2]: Leaving directory '/home/myname/my/custom/emacs29/src= /emacs-29.1/admin/charsets'
make -C ../admin/charsets eucjp-ms.elmake[2]: Entering directory '/home/myname/my/custom/emacs29/src/emacs-= 29.1/admin/charsets'
make[2]: Nothing to be done for 'eucjp-ms.e= l'.
make[2]: Leaving directory '/home/myname/my/custom/emacs29/s= rc/emacs-29.1/admin/charsets'
make[1]: Leaving directory '/home/= myname/my/custom/emacs29/src/emacs-29.1/src'
umask 022; /usr/bin/mkd= ir -p "/usr/local/share/info"
/usr/bin/mkdir: cannot create di= rectory =E2=80=98/usr/local/share/info=E2=80=99: Permission denied
make:= *** [Makefile:779: install-info] Error 1
myhost:emacs-29.1$=C2=A0
--000000000000b2b15e0605ba054d-- From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 08:31:06 2023 Received: (at 66111) by debbugs.gnu.org; 20 Sep 2023 12:31:07 +0000 Received: from localhost ([127.0.0.1]:58488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiwMD-0002lO-8a for submit@debbugs.gnu.org; Wed, 20 Sep 2023 08:31:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiwMA-0002kp-1S for 66111@debbugs.gnu.org; Wed, 20 Sep 2023 08:31:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiwLv-0000Ez-68; Wed, 20 Sep 2023 08:30:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xDVyAE7XHRxslar4J8LoP1EkdHwok5xz+LQo2soDP1A=; b=WyxInDZrBHxE 8cp7WkeMj1JhCD+6thsLnLuXk0mURfI/S0prOFsMDjUHpEIpd9dCkbxyPUHKjCVcVOKXknTBV1+OP VX9eZt0pRn7qirF7zHVyd12SHGmyYbpzt2+KxevUjVYtP80A8Ixik9sjBfofTEnA1VPv2GqT2/nuN DqnYDBV+K3KGWtBO1pcmquMUYOTSre7mnmaFAB4Rq8N/mBKJm1nqKF9KCZDXbkMfvKPds1JT2F1mB vmJhrIAP4ZgSWwSEbG7BHDYQPUKSYMy8I1UqdvDJOeukkpz1RXzgUfNLGre+uThbA8pIvWzKZz4A4 KFDZnbIKOEuISH4X/0dAqw==; Date: Wed, 20 Sep 2023 15:30:52 +0300 Message-Id: <83sf79auwz.fsf@gnu.org> From: Eli Zaretskii To: Ambrose Kofi Laing In-Reply-To: (message from Ambrose Kofi Laing on Tue, 19 Sep 2023 13:59:26 -0400) Subject: Re: bug#66111: is there a problem with --prefix? References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66111 Cc: 66111@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Ambrose Kofi Laing > Date: Tue, 19 Sep 2023 13:59:26 -0400 > > I'm trying to install emacs_29.1 at a nonstandard location, with the following commands: > > cd src/emacs-29.1 > ./autogen.sh > ./configure --prefix=/home/myname/my/custom/emacs29 --with-native-compilation=aot - > -with-imagemagick --with-json --with-tree-sitter --with-xft --without-compress-install > make -j 4 > > and I get an error message because of permission denied while trying to write under /usr/local (that is > where the script stops). In addition, there are two locations where it says the following: > > make -C src BIN_DESTDIR=''/usr/local/bin/'' \ > ELN_DESTDIR='/usr/local/lib/emacs/29.1/' all I don't see how this could have happened. BIN_DESTDIR and ELN_DESTDIR are set in the top-level Makefile.ion like this: ifeq (${ns_self_contained},no) BIN_DESTDIR='$(DESTDIR)${bindir}/' ELN_DESTDIR = $(DESTDIR)${libdir}/emacs/${version}/ else BIN_DESTDIR='${ns_appbindir}/' ELN_DESTDIR = ${ns_applibdir}/ endif Are you building the NS build on macOS? If not, the upper part of the conditional above should be true for you, and the values should have obeyed the --prefix value you used at configure time. However, I don't understand why you ran autogen.sh. Are you building from the Emacs 29.1 release tarball? If so, the configure script is already produced and provided in the tarball, you just need to run it. Could you please unpack the Emacs 29.1 tarball in a fresh directory, run the configure script without running autogen.sh, and then say "make" and "make install", and see if the problem still happens. > This happens twice (please see below the ps under my signature for the full transcript of "make > install" to see the exact context in which it happens). It seems to be that the --prefix does not override > certain locations that it is supposed to? It should, and I see the code to do that in Makefile.in, so I wonder why it didn't happen for you. > Are there other variables I need to set (other than the --prefix option to configure) that will ensure that > the compilation and installation will not try to write under /usr/local ? Please show the part of top-level Makefile where bindir and other variables are set. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 14:03:31 2023 Received: (at 66111) by debbugs.gnu.org; 20 Sep 2023 18:03:31 +0000 Received: from localhost ([127.0.0.1]:60342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj1Xs-0006kC-5l for submit@debbugs.gnu.org; Wed, 20 Sep 2023 14:03:31 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:56648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj0co-00050H-MI for 66111@debbugs.gnu.org; Wed, 20 Sep 2023 13:04:32 -0400 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5041bb9ce51so128700e87.1 for <66111@debbugs.gnu.org>; Wed, 20 Sep 2023 10:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695229455; x=1695834255; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DNewmM+nznPGQyiL9GwKeK1YGxK/m8NRLvRQb71Gm0A=; b=bdwmSPMsyn1PsXWCzFyp9BMtoITGIzXqWz/OPfs4FYgXXXsDd3YSo30v9dW2p2+r+I X6GUyCYfNVUDr3bDOlmyo1MQgseanz22fsc8LRgZAJfYbPDsfs1JuEFJKqUxpMJBVj59 jq+18s7C5xze04jEtc81u8irSNEamWTpUFYjcKvIm/NYfGPZbg07WV1MweuiZNWHcJUD P8QhkSynftj8QK2XPLFvYo/PhVyU56mm6aLHsyOOMkjQLPskS7keZouuZztQDMjgsZE7 rAsM6vkwngpvQAzz2BLn07/P+rdrBN5MYGiBZrgUReznDbNQCH7QkuTQbcXeL/GBN9iU GNbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695229455; x=1695834255; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DNewmM+nznPGQyiL9GwKeK1YGxK/m8NRLvRQb71Gm0A=; b=u6CQlf5j1n7YzM2k+QI0303TubWhgMsFqru+MuzWQHFpzYB4BQ2WELOhpdu8uuixMv BHqGk4tQOPZRFz8fZ5M7DWDHjHCvU+lVU+eIjJQPSALze6n9DqEuqB2IDFgIbHja6IPF P+ZWrbT5LwNjhg343yoqEoLPhA5NauclgYRYZ9Zzznj8fSXw997tHyaCyHc0KTiSOq2P F8pK8B6imquN1JZf/sgljokl9M2LbLMb+XmFw2LehjJ0/4LDLtwZR+VjWoUFxpdInmzW OOo/iAE9QHKo9hEKjovEmBkdqxr9z9oOHhU0FQCMhrWOsdt4EVT5l5dXu3OKZtrlHTlO qNeQ== X-Gm-Message-State: AOJu0YzX1FTA7VuU3ZUn3t+zV/pRHPRsfECANZ1txLI1Crfxc81P81EN 5bFyayUp0MnyyblIZIwhEvEM0YkI0vzoBt0FJD4= X-Google-Smtp-Source: AGHT+IGQViajQSJl2N2VF4c0DixMRWsqW+t4t5SQqH6nhCgsAxxpIY9ijwwa4E9Cbs7ITeWKhQuIIVa6maXcw2eDJcE= X-Received: by 2002:a19:9110:0:b0:502:fd08:69f7 with SMTP id t16-20020a199110000000b00502fd0869f7mr2751371lfd.28.1695229454835; Wed, 20 Sep 2023 10:04:14 -0700 (PDT) MIME-Version: 1.0 References: <83sf79auwz.fsf@gnu.org> In-Reply-To: <83sf79auwz.fsf@gnu.org> From: Ambrose Kofi Laing Date: Wed, 20 Sep 2023 13:04:02 -0400 Message-ID: Subject: Re: bug#66111: is there a problem with --prefix? To: Eli Zaretskii Content-Type: multipart/alternative; boundary="00000000000077e6760605cd5d0d" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66111 X-Mailman-Approved-At: Wed, 20 Sep 2023 14:03:27 -0400 Cc: 66111@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000077e6760605cd5d0d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Eli, Thanks for your response. I was indeed building from the tarball. I commented out the autogen.sh call, and still the installation went into /usr/local, instead of to the /nonstandard/location. So that was not the only problem. After fiddling with it some more I discovered the following (sequence of errors): - One of the arguments to my configure script was: --with-tree-sitter - libtree-sitter-dev was not available on my system [First Mistake] - I was running configure inside a bash shell script, and I had not put "se= t -e" at the top of that bash script. [Second Mistake] - As a result, configure correctly detected that libtree-sitter was missing and failed (and did not produce a Makefile). - Since I hadn't "set -e", the bash script went on ahead to run make anyway= , instead of stopping right there. - make did not find a Makefile, but found a GNUMakefile, and since there wa= s no Makefile, make ran configure (without arguments) to generate a Makefile, and naturally this invocation of configure did not include my setting of --prefix=3D/nonstandard/location from the previous call which failed. - Finally when the install happened, it went into /usr/local instead of /nonstandard/location. - To fix, this, I have to provide tree-sitter obviously, but the quick fix was to remove --with-tree-sitter from the arguments of configure. - Once that was done, configure ran correctly and generated a Makefile, I would assume including my setting of /nonstandard/location. By this time I had removed the autogen.sh call. - Then running configure and make and make install installed correctly to /nonstandard/location. So technically there is nothing wrong, but I can't help wondering if it would not be more helpful for the GNUMakefile to echo a message saying "I can't find a Makefile, please run configure yourself to generate one", instead of bein= g helpful and trying to run configure for me and not quite doing it the way I wanted. I know however that things like GNUMakefiles have a lot of history and this behavior is probably unlikely to change. Anyway, I'm all set now, thank you for your help!! Best, Ambrose On Wed, Sep 20, 2023 at 8:30=E2=80=AFAM Eli Zaretskii wrote: > > From: Ambrose Kofi Laing > > Date: Tue, 19 Sep 2023 13:59:26 -0400 > > > > I'm trying to install emacs_29.1 at a nonstandard location, with the > following commands: > > > > cd src/emacs-29.1 > > ./autogen.sh > > ./configure --prefix=3D/home/myname/my/custom/emacs29 > --with-native-compilation=3Daot - > > -with-imagemagick --with-json --with-tree-sitter --with-xft > --without-compress-install > > make -j 4 > > > > and I get an error message because of permission denied while trying to > write under /usr/local (that is > > where the script stops). In addition, there are two locations where it > says the following: > > > > make -C src BIN_DESTDIR=3D''/usr/local/bin/'' \ > > ELN_DESTDIR=3D'/usr/local/lib/emacs/29.1/' all > > I don't see how this could have happened. BIN_DESTDIR and ELN_DESTDIR > are set in the top-level Makefile.ion like this: > > ifeq (${ns_self_contained},no) > BIN_DESTDIR=3D'$(DESTDIR)${bindir}/' > ELN_DESTDIR =3D $(DESTDIR)${libdir}/emacs/${version}/ > else > BIN_DESTDIR=3D'${ns_appbindir}/' > ELN_DESTDIR =3D ${ns_applibdir}/ > endif > > Are you building the NS build on macOS? If not, the upper part of the > conditional above should be true for you, and the values should have > obeyed the --prefix value you used at configure time. > > However, I don't understand why you ran autogen.sh. Are you building > from the Emacs 29.1 release tarball? If so, the configure script is > already produced and provided in the tarball, you just need to run it. > Could you please unpack the Emacs 29.1 tarball in a fresh directory, > run the configure script without running autogen.sh, and then say > "make" and "make install", and see if the problem still happens. > > > This happens twice (please see below the ps under my signature for the > full transcript of "make > > install" to see the exact context in which it happens). It seems to be > that the --prefix does not override > > certain locations that it is supposed to? > > It should, and I see the code to do that in Makefile.in, so I wonder > why it didn't happen for you. > > > Are there other variables I need to set (other than the --prefix option > to configure) that will ensure that > > the compilation and installation will not try to write under /usr/local= ? > > Please show the part of top-level Makefile where bindir and other > variables are set. > --00000000000077e6760605cd5d0d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Eli,

Th= anks for your response.=C2=A0 I was indeed building from the tarball.
=

I commented out the autogen.sh call, and still the inst= allation went into
/usr/local, instead of to the /nonstandard/location.= =C2=A0 So that was not the only
problem.=C2=A0 After fiddling wit= h it some more I discovered the following (sequence of errors):

- On= e of the arguments to my configure script was: --with-tree-sitter

- = libtree-sitter-dev was not available on my system [First Mistake]

- = I was running configure inside a bash shell script, and I had not put "= ;set
=C2=A0 -e" at the top of that bash script. [Second Mistake]
- As a result, configure correctly detected that libtree-sitter was mi= ssing and failed (and did not produce a Makefile).

- Since I hadn= 9;t "set -e", the bash script went on ahead to run make anyway,=C2=A0 instead of stopping right there.

- make did not find a Make= file, but found a GNUMakefile, and since there was
=C2=A0 no Makefile, m= ake ran configure (without arguments) to generate a Makefile,
=C2=A0 and= naturally this invocation of configure did not include my setting of
= =C2=A0 --prefix=3D/nonstandard/location from the previous call which failed= .

- Finally when the install happened, it went into /usr/local inste= ad of
=C2=A0 /nonstandard/location.

- To fix, this, I have to pro= vide=C2=A0 tree-sitter obviously, but the quick
=C2=A0 fix was to remove= --with-tree-sitter from the arguments of configure.

- Once that was= done, configure ran correctly and generated a Makefile, I
=C2=A0 would = assume including my setting of /nonstandard/location.=C2=A0 By this time I = had removed the autogen.sh call.

- Then running configure and make a= nd make install installed correctly to
=C2=A0 /nonstandard/location.
=
So technically there is nothing wrong, but I can't help wondering i= f it would
not be more helpful for the GNUMakefile to echo a message say= ing "I can't find
a Makefile, please run configure yourself to = generate one", instead of being
helpful and trying to run configure= for me and not quite doing it the way I
wanted.=C2=A0 I know however th= at things like GNUMakefiles have a lot of history
and this behavior is p= robably unlikely to change.

Anyway, I'm all set now, thank you f= or your help!!

Best,

Ambrose

On = Wed, Sep 20, 2023 at 8:30=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Ambrose Kofi Laing <aklaing@gmail.com>
> Date: Tue, 19 Sep 2023 13:59:26 -0400
>
> I'm trying to install emacs_29.1 at a nonstandard location, with t= he following commands:
>
>=C2=A0 cd src/emacs-29.1
>=C2=A0 ./autogen.sh
>=C2=A0 ./configure --prefix=3D/home/myname/my/custom/emacs29 --with-nat= ive-compilation=3Daot -
>=C2=A0 -with-imagemagick --with-json --with-tree-sitter --with-xft --wi= thout-compress-install
>=C2=A0 make -j 4
>
> and I get an error message because of permission denied while trying t= o write under /usr/local (that is
> where the script stops).=C2=A0 In addition, there are two locations wh= ere it says the following:
>
> make -C src BIN_DESTDIR=3D''/usr/local/bin/'' \
> ELN_DESTDIR=3D'/usr/local/lib/emacs/29.1/' all

I don't see how this could have happened.=C2=A0 BIN_DESTDIR and ELN_DES= TDIR
are set in the top-level Makefile.ion like this:

=C2=A0 ifeq (${ns_self_contained},no)
=C2=A0 BIN_DESTDIR=3D'$(DESTDIR)${bindir}/'
=C2=A0 ELN_DESTDIR =3D $(DESTDIR)${libdir}/emacs/${version}/
=C2=A0 else
=C2=A0 BIN_DESTDIR=3D'${ns_appbindir}/'
=C2=A0 ELN_DESTDIR =3D ${ns_applibdir}/
=C2=A0 endif

Are you building the NS build on macOS?=C2=A0 If not, the upper part of the=
conditional above should be true for you, and the values should have
obeyed the --prefix value you used at configure time.

However, I don't understand why you ran autogen.sh.=C2=A0 Are you build= ing
from the Emacs 29.1 release tarball?=C2=A0 If so, the configure script is already produced and provided in the tarball, you just need to run it.
Could you please unpack the Emacs 29.1 tarball in a fresh directory,
run the configure script without running autogen.sh, and then say
"make" and "make install", and see if the problem still= happens.

> This happens twice (please see below the ps under my signature for the= full transcript of "make
> install" to see the exact context in which it happens).=C2=A0 It = seems to be that the --prefix does not override
> certain locations that it is supposed to?

It should, and I see the code to do that in Makefile.in, so I wonder
why it didn't happen for you.

> Are there other variables I need to set (other than the --prefix optio= n to configure) that will ensure that
> the compilation and installation will not try to write under /usr/loca= l ?

Please show the part of top-level Makefile where bindir and other
variables are set.
--00000000000077e6760605cd5d0d-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 19:29:54 2023 Received: (at 66111-done) by debbugs.gnu.org; 30 Sep 2023 23:29:54 +0000 Received: from localhost ([127.0.0.1]:60025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmjP3-00012E-7x for submit@debbugs.gnu.org; Sat, 30 Sep 2023 19:29:54 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:47509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmjOz-00011t-LH for 66111-done@debbugs.gnu.org; Sat, 30 Sep 2023 19:29:40 -0400 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2c296e6543fso6770521fa.3 for <66111-done@debbugs.gnu.org>; Sat, 30 Sep 2023 16:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696116556; x=1696721356; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=7DMNvTlkaF2uqxk86bSDL2JJK2MsPTAY22YEIxJFL2w=; b=f4atWZ6TMskbo5n9qF9cp+1vucwgIdi5bSsAxy3N7zgjMpkorERTFUrJw66gtJuh9J wBpD3Q6uARsZMde6CC6Pe/e7gPC+oPxkAxC83qGZh6VAFYvyI4GTcQUp5hMM9iv9gcaq mRj+23pdiSzyNq8tRokJu29sBv5DgcxNzGGLB7osix72Zyaa/h3iYqEpP8d90rNLShZR nTbX2SAzHK8dCfFeG08IXxNsvjAYxjL1Ir6eiivFYPhvX1rUNgd0k1qvj0u+IJu0fAQ5 FWwNqp9Q53GUUOL8iAP3EfVL52H//IOln61TkC1C2TKuSDISnWD5BWeul+LhD03RjAlP rQSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696116556; x=1696721356; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7DMNvTlkaF2uqxk86bSDL2JJK2MsPTAY22YEIxJFL2w=; b=wNl0LfywFBqEaaktCYkYO2gk90BIDV49MKwvoYbqE/gT2jpO/GuySw6p66kO9R0Glt thDKm1+XwMgfopiuY2zULW5llWrGLefHxc+QThGql/MC1dZE07EI1aXa1cilxPg75nht gzm6Pm9gRMJMzqa0NWh/kOpKr65gC3vvCGQuL+1RrCQot3CjbjmoyJ8ih77Q9bCX/7Yj ooggV88dIzU9UTl2Kk5jzkTgj/exqLJFxDVSCYzUZQqTAc1+qmlHQNpF1pRsUlf/xaHg JEVE65ibROtXuUfY+SZtcsPDjowdhlDnyqMN9vAWS7BDEAeAg4hQH5tKhqyNdwQko8sq zWow== X-Gm-Message-State: AOJu0YxXP97K7m7xk5C+EABTK13ZGfqAHvSPvLX4XaEK2ro2OCDF1eiZ /tBu5bfHkI7wNG1x0pem3AKPVx7bBMR4ZMEC9uKaP3Va X-Google-Smtp-Source: AGHT+IGI9JS6vbcfAVBTT74Hwkc0eIJU4+YjDRDe9KQfW3BS1cJ6QjMdSEWAT0Zsrzc7ou8RisWdGY3/Dy9POXEUxSY= X-Received: by 2002:a05:6512:2037:b0:503:33ab:8126 with SMTP id s23-20020a056512203700b0050333ab8126mr6465262lfs.17.1696116556060; Sat, 30 Sep 2023 16:29:16 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 30 Sep 2023 16:29:15 -0700 From: Stefan Kangas In-Reply-To: (Ambrose Kofi Laing's message of "Wed, 20 Sep 2023 13:04:02 -0400") References: <83sf79auwz.fsf@gnu.org> MIME-Version: 1.0 Date: Sat, 30 Sep 2023 16:29:15 -0700 Message-ID: Subject: Re: bug#66111: is there a problem with --prefix? To: Ambrose Kofi Laing Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66111-done Cc: Eli Zaretskii , 66111-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ambrose Kofi Laing writes: > Hi Eli, > > Thanks for your response. I was indeed building from the tarball. > > I commented out the autogen.sh call, and still the installation went into > /usr/local, instead of to the /nonstandard/location. So that was not the only > problem. After fiddling with it some more I discovered the following (sequence of errors): > > - One of the arguments to my configure script was: --with-tree-sitter > > - libtree-sitter-dev was not available on my system [First Mistake] > > - I was running configure inside a bash shell script, and I had not put "set > -e" at the top of that bash script. [Second Mistake] > > - As a result, configure correctly detected that libtree-sitter was missing and failed (and did not produce a Makefile). > > - Since I hadn't "set -e", the bash script went on ahead to run make anyway, > instead of stopping right there. > > - make did not find a Makefile, but found a GNUMakefile, and since there was > no Makefile, make ran configure (without arguments) to generate a Makefile, > and naturally this invocation of configure did not include my setting of > --prefix=/nonstandard/location from the previous call which failed. > > - Finally when the install happened, it went into /usr/local instead of > /nonstandard/location. > > - To fix, this, I have to provide tree-sitter obviously, but the quick > fix was to remove --with-tree-sitter from the arguments of configure. > > - Once that was done, configure ran correctly and generated a Makefile, I > would assume including my setting of /nonstandard/location. By this time I had removed the autogen.sh call. > > - Then running configure and make and make install installed correctly to > /nonstandard/location. > > So technically there is nothing wrong, but I can't help wondering if it would > not be more helpful for the GNUMakefile to echo a message saying "I can't find > a Makefile, please run configure yourself to generate one", instead of being > helpful and trying to run configure for me and not quite doing it the way I > wanted. I know however that things like GNUMakefiles have a lot of history > and this behavior is probably unlikely to change. > > Anyway, I'm all set now, thank you for your help!! The issue seems resolved, so I'm closing the bug report. From unknown Thu Jun 19 14:03:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 29 Oct 2023 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator