unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Garjola Dindi <garjola@garjola.net>
To: help-guix@gnu.org
Subject: Re: Packages don't get installed in the correct path
Date: Wed, 17 Mar 2021 14:22:01 +0100	[thread overview]
Message-ID: <87ft0t9apy.fsf@pc-117-162.ovh.com> (raw)
In-Reply-To: 87pmzy873g.fsf@pc-117-162.ovh.com

On Wed 17-Mar-2021 at 10:25:39 +01, Garjola Dindi <garjola@garjola.net>
wrote: 
> On Wed 17-Mar-2021 at 08:49:22 +01, Ricardo Wurmus <rekado@elephly.net>
> wrote: 
>> Garjola Dindi <garjola@garjola.net> writes:
>>
>>> On Wed 17-Mar-2021 at 07:51:18 +01, Tobias Geerinckx-Rice <me@tobias.gr>
>>> 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.

-- 



      reply	other threads:[~2021-03-17 13:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 20:31 Packages don't get installed in the correct path Garjola Dindi
2021-03-17  6:51 ` Tobias Geerinckx-Rice
2021-03-17  7:31   ` Garjola Dindi
2021-03-17  7:49     ` Ricardo Wurmus
2021-03-17  9:25       ` Garjola Dindi
2021-03-17 13:22         ` Garjola Dindi [this message]

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87ft0t9apy.fsf@pc-117-162.ovh.com \
    --to=garjola@garjola.net \
    --cc=help-guix@gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).