all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roy Lemmon <roy@roylemmon.com>
To: Marius Bakke <mbakke@fastmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Installing guix on nixos system
Date: Thu, 19 Mar 2020 13:17:26 +0000	[thread overview]
Message-ID: <CAH5rZC7ML2zn-bEmNkiZ76i4e6T-2HDLXEpKnKvEHq8ncqhe9w@mail.gmail.com> (raw)
In-Reply-To: <87a74cbsy8.fsf@devup.no>

Hi Marius et al.,

Thanks for your help. That is clearer now. In fact that is what I did, ran
'guix pull' as user and the latest version of guix is installed in
~/.config/guix/current.

My problem now is that I can run guix from there if I use the full path
name:

$ ~/.config/guix/current/bin/guix --help

But if I just run:

$ guix --help

it doesn't recognise the command. Normally this would just be because I
have not added that directory to PATH as you say.

However here is the problem. I am using eshell in emacs. I have tried the
following:

$ (setenv "PATH" (concat "/home/rlemmon/.config/guix/current/bin:" (getenv
"PATH")))
$ addpath /home/rlemmon/.config/guix/current/bin

But still the same problem. I understand this is now an eshell problem
rather than a guix one. But if anyone has encountered this before ... ? Its
a frustrating problem !

Thanks
Roy.

On Thu, Mar 19, 2020 at 9:21 AM Marius Bakke <mbakke@fastmail.com> wrote:

> Roy Lemmon <roy@roylemmon.com> writes:
>
> > Hi All,
> >
> > I have followed the instructions in that link and successfully installed
> > the build users and guix daemon on my nixos system. As root, I can run
> >
> > guix package -i hello
> >
> > and the hello package is installed and I can run it.
> >
> > However I am having trouble setting up the environment for running guix
> as
> > a user (I am on my laptop, so there is only one user). guix is of course
> > not recognised as a command when I am the user. I can run it as
> > /usr/local/bin/guix so that is ok and I could put that in my PATH. But is
> > that all I need to do ? I am not sure where the guix packages are
> installed
> > as a user rather than root.
>
> I haven't read the linked blog post, but I think the next step is to use
> the Guix in /usr/local/bin to run 'guix pull' as your user.  That will
> install the latest version of Guix in ~/.config/guix/current.
>
> Afterwards, make sure ~/.config/guix/current/bin comes first in PATH,
> then you should be able to use Guix normally.
>


-- 
********************************
Roy Lemmon
STFC Daresbury Laboratory
United Kingdom
********************************

  reply	other threads:[~2020-03-19 13:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-16 12:15 Installing guix on nixos system Roy Lemmon
2020-03-16 14:34 ` Pierre Neidhardt
2020-03-16 14:39   ` Roy Lemmon
2020-03-18 13:38   ` Roy Lemmon
2020-03-19  9:21     ` Marius Bakke
2020-03-19 13:17       ` Roy Lemmon [this message]
2020-03-21 18:39         ` Pierre Neidhardt
2020-03-16 16:52 ` Leo Famulari

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

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

  git send-email \
    --in-reply-to=CAH5rZC7ML2zn-bEmNkiZ76i4e6T-2HDLXEpKnKvEHq8ncqhe9w@mail.gmail.com \
    --to=roy@roylemmon.com \
    --cc=help-guix@gnu.org \
    --cc=mbakke@fastmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.