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 JzE8MpACUmAbRgAA0tVLHw (envelope-from ) for ; Wed, 17 Mar 2021 13:22:24 +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 qHePLZACUmCyDwAA1q6Kng (envelope-from ) for ; Wed, 17 Mar 2021 13:22:24 +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 1420CF7A3 for ; Wed, 17 Mar 2021 14:22:24 +0100 (CET) Received: from localhost ([::1]:49034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMW7z-0004w3-6u for larch@yhetil.org; Wed, 17 Mar 2021 09:22:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMW7n-0004uv-BK for help-guix@gnu.org; Wed, 17 Mar 2021 09:22:11 -0400 Received: from ciao.gmane.io ([116.202.254.214]:41592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMW7l-0003dT-1L for help-guix@gnu.org; Wed, 17 Mar 2021 09:22:10 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lMW7i-0008Ph-Us for help-guix@gnu.org; Wed, 17 Mar 2021 14:22:06 +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 14:22:01 +0100 Message-ID: <87ft0t9apy.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> <87pmzy873g.fsf@pc-117-162.ovh.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:EXCJjWUv+O2F0trai+5RaXtqdbk= 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=1615987344; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=iZKb9hPyXNArbtTekR+sNhuMYXi3Ge6EenMn9hHZVFQ=; b=DIZ1+APk5+7tG0EEqlBWijw+wYL9UaZ/G93cWIgs5rz6nkqaQ5QA3LeptoB0kJry610EeP ZnSVq/0umG8syP66f4QD/a6didxGuS22wAhwkwpTwuhf6jOL2urYfhLTyyJRijIEMcJrzc L+0hZHm/xASimYnQ7WODw8j8vUFFHiIH94zVKFwMigPmiSetOG5zl2VF0UkyQsNGMXkxKz 5hv9ZN/5gyhEhRjpk3xMzCSA9JdH59S0PxHsqBFLMRsU/DBiTSLHrYN7FtxJ/Ee+RmKsRW NGQMJ133v0YQcCaGTXGzeyDuZcppAoScf/XZT1XsCjV+Jk/Qyr0gpq+gFCXhAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615987344; a=rsa-sha256; cv=none; b=NELGySMT1g346wPRwGd+YzI20VimYyh0UL6BGD0cMRA3KjYxMjeIkH1GahxfO4zoIm2u/9 JSLFVTOJJ61xUzLLTasHlQPfwoyYCnsHS5JfcpbEmk0oEEWwYugsooc/9MlGd5YondG20/ BA9U5ZNfj3lhsqijm7aGX3JAL0v6i+DzJ109rhNqKWPUw/Bx2ul0fcJUU6TH4WUd0nz8Ed Ouk6YgG7bNNnFV1sgUieX89XALahr7uye1Vh0INHUzCYBRSj77/asn1joOYRPR4C9tQB/e an3Ec4ljLVHa7QpMCKYzE1iBserUTLYxsuNQUcA66MCObJ/OgMEfKElcMK42UQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -1.90 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 1420CF7A3 X-Spam-Score: -1.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: i4ImFj51/hhQ On Wed 17-Mar-2021 at 10:25:39 +01, Garjola Dindi wrote: > 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: >>> 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? OK, I think I got it. My ~/.guix-profile folder seemed to be the problem, because it only contained etc and share and no bin. I have removed it and made it a symlink to /var/guix/profiles/per-user/garjola/guix-profile. My .bashrc contains ,---- | export PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH" | export INFOPATH="$HOME/.config/guix/current/share/info:$INFOPATH" | export GUIX_PROFILE="$HOME/.guix-profile" | export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale | source "$HOME/.guix-profile/etc/profile" `---- I think that now everything behaves as expected. Is it correct to assume that the ~/.guix-profile has to be a link to the per-user profile in /var? The remaining puzzling question is why the ~/.guix-profile was like that? I am assuming that the first guix invocation by a user after running the installer as root should create the correct arborescences. But since I had done some tests with guix a couple of years ago, maybe that the folder was there already? In any case, thanks for your patience. Garjola. --