From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qMEMJRmnUWCPRwAA0tVLHw (envelope-from ) for ; Wed, 17 Mar 2021 06:52:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uBXfIBmnUWBiCgAA1q6Kng (envelope-from ) for ; Wed, 17 Mar 2021 06:52:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D380892FC for ; Wed, 17 Mar 2021 07:52:08 +0100 (CET) Received: from localhost ([::1]:38026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMQ2I-0003yz-LI for larch@yhetil.org; Wed, 17 Mar 2021 02:52:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMQ1i-0003yI-L6 for help-guix@gnu.org; Wed, 17 Mar 2021 02:51:31 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:36064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMQ1c-0005SI-Pp for help-guix@gnu.org; Wed, 17 Mar 2021 02:51:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=mXRWn8JdMDsIzyuclaQxwTiPSmHlpgzvgHJH31ZaSyg=; h=date:in-reply-to: references:subject:cc:to:from; b=X0dGkU8XwpgBTWweD/OeLGXb0L9n/GRqQQhy4 0RgXt+8l08w1FR08CCTrma+6k2qW2NasqyfWbhm14HG+aE3K143QMQh4cKaETJn5Qpk156 fy90fQGFWiSjQGZOEupr5q/rEMXl2BvnwIYu3EldmIX9wo6Cgbj1Kr1Dk2Yuv4niPIgAVL ba91MbZmKXlqZDYK88jFyVUpBJMRFyKnMCQuoMBu+QrBSaexGgLOi6bUVN/2AoftjfciDl RSlEWnhjGQ+8RWPcmla4a3+WjBAcnkrE/IfmEGi3yx5uY30gFNRbMqh39R3BdQw3gh5A0q lvSVYyrpEFEFU2GbsYfA2SXSA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 2da70170 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Wed, 17 Mar 2021 06:52:21 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Garjola Dindi Cc: help-guix@gnu.org Subject: Re: Packages don't get installed in the correct path References: <87blbig7sb.fsf@pc-117-162.ovh.com> In-reply-to: <87blbig7sb.fsf@pc-117-162.ovh.com> Date: Wed, 17 Mar 2021 07:51:18 +0100 Message-ID: <877dm6mfx5.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615963928; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mXRWn8JdMDsIzyuclaQxwTiPSmHlpgzvgHJH31ZaSyg=; b=hoWXVGG6H9JdyEcqdbMdRY1dVCIjV/AAvu4U/zuz2nhh2f/6OayhpftIlD0iSdYUIBYfm6 DWZ1cC0zqV/ygYj3sKyJ3QtLdZSwj+Qea452ix/GCvkdhNXoOSdWVPCOrTgrpniCY3UNqo nYH4ILgvPxf8309SuboGuor5IbTP+mnY2VcDrqFFBJl1CZprTNWGlk7nk/D5pkX4Ah/RRA 9CwZr4QebP/Yvj0LFBVIYdpoS7ddAnAtoBso69wU7PbOfKg/mMLSqHZsduGIDPgylyfHKE Dng8x7gAx0NjBrVS/PUDnBy1JdIikQCY/UUUyumvkT6jzcScKilRdM74Z6wiVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615963928; a=rsa-sha256; cv=none; b=RSCUPQyvKJLTUaR+L8YQkpDhAB+gXv5Js6uU2B7tEythg3nL68qqfamKSOBoFWn7zc+59m oT8wzHNqtUdCXPNn+rAFLrjx07EAmiXo91ntCJhxLLUUWy8KLCoIQGKC/iZKk2YyHWibgv jeFCDwUrTnPZ9m7nOFJ8d0VyGVWfuPBJBaKYMeu6fx07s5Yia5f858NQerhIYOGL/EOGsn tvJU6UnzCk4i+Wwkl8EAg5EdD8r06OfiK6LDspJJzrvNRFfvOfP0bOeLFAHt8p0WgRzQlg 0FmK/Ah1oi+/uNF4gTYDspfbZONZyxjlfZc45O63Z8hrlrUM0zRGh7tDzvaLYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=X0dGkU8X; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=X0dGkU8X; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: D380892FC X-Spam-Score: -4.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: WRrfAH90yGdb --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Garjola! Garjola Dindi =E5=86=99=E9=81=93=EF=BC=9A > I have added the following to my ~/.basrhc as indicated in the=20 > manual: > > ,----[ bash ] > | export=20 > PATH=3D"/home/garjola/.config/guix/current/bin${PATH:+:}$PATH" Which mad-Max manual indicates this? Not [my copy of] Guix's: =E2=80=9C(1) Users sometimes wrongfully augment environment variables such as 'PATH' in their '~/.bashrc' file. As a consequence, when 'guix environment' launches it, Bash may read '~/.bashrc', thereby introducing "impurities" in these environment variables. It is an error to define such environment variables in '.bashrc'; instead, they should be defined in '.bash_profile', which is sourced only by log-in shells. *Note (bash)Bash Startup Files::, for details on Bash start-up files.=E2=80=9D -- info "(guix)Invoking guix environment" Adding PATH to .bashrc is almost always a mistake, and round that=20 up to =E2=80=98always=E2=80=99. As a Guix System user I'm less familiar wi= th=20 GUIX_LOCPATH, but the manual doesn't suggest adding it either. > Actually, despite the configuration in .bashrc Side note: sourcing /etc/profile configures your=20 environment to =E2=80=98see=E2=80=99 Guix-installed software. It does not= =20 configure Guix, which will install to ~/.guix-profile unless you=20 specify another one with --profile=3D (-p). > the packages do not get installed in the $HOME tree, but in > /var/..../per-user/. Lo: ~ =CE=BB ls -l ~/.guix-profile lrwxrwxrwx 1 nckx nckx 45 Sep 28 09:01 /home/nckx/.guix-profile -> /var/guix/profiles/per-user/nckx/guix-profile/ Unless something has gone *very* wrong, your installed packages=20 should show up under both /var/... and ~/.guix-profile alike. > The $HOME tree only contains the guix binaries: > > ,----[ bash ] > | $ ls ${HOME}/.config/guix/current/bin > | guix guix-daemon > `---- This is good: ~/.config/guix/current is not ~/.guix-profile. The latter is your default profile, where =E2=80=98guix install=E2=80=99 an= d=20 friends install software. The former is exclusively for use by=20 =E2=80=98guix pull=E2=80=99 and provides the =E2=80=98guix=E2=80=99 command= itself, to avoid a=20 chicken-and-egg problem. > The most annoying thing is that the programs are not in the path I don't want to presume what you mean: that they're not where you=20 thought they would be (not in ~/.config/guix), or that you can't=20 actually run them (not in PATH)? There's nothing wrong with any of the directories you mentioned.=20 If you can run Guix-installed software from the shell immediately=20 after installing it, I'd say that the /var thing is just a quirk=20 of running Guix on a foreign distribution. Quite a few regulars do so, some on Debian. I'll let them correct=20 me if I'm wrong (and explain the mystery that is GUIX_LOCPATH). Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYFGm5g0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15bq4BAJ1UQ9MZZ93fzJxS4ez3BTRyR/mklnAnaTwUsF2B YPsvAQDqBqExIuX+cRPe2E7p54ZvIEjUBW+NLWFKYqPyLP1QAA== =bRtS -----END PGP SIGNATURE----- --=-=-=--