From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KC84IyjLUWCYBQAA0tVLHw (envelope-from ) for ; Wed, 17 Mar 2021 09:26:00 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cLt+HijLUWDubwAA1q6Kng (envelope-from ) for ; Wed, 17 Mar 2021 09:26:00 +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 aspmx2.migadu.com (Postfix) with ESMTPS id B1F0A188CB for ; Wed, 17 Mar 2021 10:25:59 +0100 (CET) Received: from localhost ([::1]:43510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMSRB-0001Jj-Ov for larch@yhetil.org; Wed, 17 Mar 2021 05:25:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMSR0-0001JT-R2 for help-guix@gnu.org; Wed, 17 Mar 2021 05:25:46 -0400 Received: from ciao.gmane.io ([116.202.254.214]:50544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMSQz-0007kq-5q for help-guix@gnu.org; Wed, 17 Mar 2021 05:25:46 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lMSQx-000APY-C3 for help-guix@gnu.org; Wed, 17 Mar 2021 10:25:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: help-guix@gnu.org From: Garjola Dindi Subject: Re: Packages don't get installed in the correct path Date: Wed, 17 Mar 2021 10:25:39 +0100 Message-ID: <87pmzy873g.fsf@pc-117-162.ovh.com> References: <87blbig7sb.fsf@pc-117-162.ovh.com> <877dm6mfx5.fsf@nckx> <874kha9qyb.fsf@pc-117-162.ovh.com> <87v99qkynx.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:NP9Keg8t5HdjzRsV7Yiz1QOg9s4= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gcggh-help-guix@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1615973159; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=1pshI9sCfLEGDabcXRn7/v/PXhMd902SXDfebcxRhMM=; b=oaHt0ElmCvV1hQlGNtDgojaxb6F/4M7uI8J6Q6zw8vQ9Updkwe9Zu/OSJKZ8nU8nxWxSv1 fd1c/6TgNLQTEDb9GKbsBRilxpYRZ+adt8qRCa1IcLdERWf3RqavtkF1FeJCGu2IDe+skM MRYLSniB9ubug27WUiK53UdBswmnw13wSww3Xc5RnJTcgduPnfB3/f6FEfuGnSQyU7ljbm h5/O9EeL5ijTXXK9TiSIYjo8orPn5iQojX40bO5HrRWpc/UyPA86TCN5OqwVEZtmwnIQjF YzBrDIuEnmfZFY2XJ/j+030oosjfzaiBrDlOKNgdXD7ZByem3XblJMHgSfhBfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615973159; a=rsa-sha256; cv=none; b=oHpYIM5Q1sMao++1l0S8JKYVnmBVetnBwvfI3EcvTXSVc+LAbAjOmD2ZODA9hoq33G4aVc EALWf5f3kdmTBOurqb+jL2LGMCv1TrhUOrlXTZVl/Qs2AWRQ2lP8GX2U7GwnxHFavMWWBw WJTW7uhddje1BDyWoPQi2r55z4O2zdWjd7HMb0ZOJjbgbV2rptGfMdUKnpEXnd2kvW+efl 9xeflYJ5l6/7IAK4u+D1GAUscQZE+A6R/GRCrbuIzHvfdp8+/0IKBKfskRcFctGdW5fiSw 1Io2e/TiJSNHzMf6j0PHZtb1KGCRBMXWskUEnB09CvoO0+klHV+W4RJFqFfEnQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.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: -1.90 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.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: B1F0A188CB X-Spam-Score: -1.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: iq323uBlFige On Wed 17-Mar-2021 at 08:49:22 +01, Ricardo Wurmus wrote: > Garjola Dindi writes: > >> On Wed 17-Mar-2021 at 07:51:18 +01, Tobias Geerinckx-Rice >> wrote: >>> Hi Garjola! >>> >>> Garjola Dindi 写道: >>>> I have added the following to my ~/.basrhc as indicated in the manual: >>>> >>>> ,----[ bash ] >>>> | export PATH="/home/garjola/.config/guix/current/bin${PATH:+:}$PATH" >>> >>> Which mad-Max manual indicates this? Not [my copy of] Guix's: >>> >> >> [...] >> >> >> Mine (installed in >> /gnu/store/mi10gphgjw1d....5b-guix-82a9538ea/share/info/guix.info.gz) >> says in section 5.5 Invoking ‘guix gc’: >> >> ,---- >> | The result of running ‘guix pull’ is a “profile” available under >> | ‘~/.config/guix/current’ containing the latest Guix. Thus, make sure to >> | add it to the beginning of your search path so that you use the latest >> | version, and similarly for the Info manual (*note Documentation::): >> | >> | export PATH="$HOME/.config/guix/current/bin:$PATH" >> `---- > > That’s okay. This ensures that “guix” (provided by “guix pull”) is > available and preferred over whatever global installation of Guix there > might be (such as /usr/local/bin/guix). So this is in contradiction with what Tobias wrote before? > >>>> 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 >>> thought they would be (not in ~/.config/guix), or that you can't >>> actually run them (not in PATH)? >> >> They are not in PATH. > > Then all you need is to add this to ~/.bash_profile > > GUIX_PROFILE=$HOME/.guix-profile > source $GUIX_PROFILE/etc/profile The issue is that $HOME/.guix-profile/etc/profile is empty, and therefore, none of the installed packages in /var are in the path. > >> It seems that there are a lot of things that I have not understood about >> how the whole thing works. >> >> I will study the manual again. Is there a way to complete remove my >> current installation so that I start with a clean slate? > > I advise against it. Your problem is with variables, not with stateless > binaries in /gnu/store. Given the inconsistencies I have, (the profile file being empty, for instance), I don't feel confident with my installation and would rather start from scratch. Is this possible? Thanks. --