unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* guix installation on nixos
@ 2019-02-13 16:09 Roy Lemmon
  2019-02-13 18:47 ` Leo Famulari
  2019-02-13 19:03 ` Guy fleury
  0 siblings, 2 replies; 10+ messages in thread
From: Roy Lemmon @ 2019-02-13 16:09 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

Hi,

I am having trouble installing guix on nixos. I have specified the build
users and the guix daemon isystemd service in my configuration.nix file and
all works.

I am then following the binary installation instructions. As root I then
try to test by running

guix package -i hello

However rather than install the small hello package, guix is installing a
large number of dependencies such as gcc etc. It is taking a long time. IS
this normal ?

I am also having trouble setting up the environment for running guix as
non-root user.

This is on a laptop.

Is this the right mailing list to ask for help ?

Thanks
Roy.

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

[-- Attachment #2: Type: text/html, Size: 1154 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: guix installation on nixos
  2019-02-13 16:09 guix installation on nixos Roy Lemmon
@ 2019-02-13 18:47 ` Leo Famulari
  2019-02-13 19:03 ` Guy fleury
  1 sibling, 0 replies; 10+ messages in thread
From: Leo Famulari @ 2019-02-13 18:47 UTC (permalink / raw)
  To: Roy Lemmon; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

On Wed, Feb 13, 2019 at 04:09:17PM +0000, Roy Lemmon wrote:
> I am then following the binary installation instructions. As root I then
> try to test by running
> 
> guix package -i hello
> 
> However rather than install the small hello package, guix is installing a
> large number of dependencies such as gcc etc. It is taking a long time. IS
> this normal ?

It sounds like binary substitutes have not been authorized yet, so Guix
is building everything from source.

https://www.gnu.org/software/guix/manual/en/html_node/Substitutes.html

> I am also having trouble setting up the environment for running guix as
> non-root user.

What kind of trouble are you having?

PS — If you have access to IRC Freenode, find us in #guix for
lower-latency troubleshooting.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: guix installation on nixos
  2019-02-13 16:09 guix installation on nixos Roy Lemmon
  2019-02-13 18:47 ` Leo Famulari
@ 2019-02-13 19:03 ` Guy fleury
  2019-02-14 16:04   ` Roy Lemmon
  1 sibling, 1 reply; 10+ messages in thread
From: Guy fleury @ 2019-02-13 19:03 UTC (permalink / raw)
  To: Roy Lemmon; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

Le mer. 13 févr. 2019 à 19:17, Roy Lemmon <roy@roylemmon.com> a écrit :

> Hi,
>
> I am having trouble installing guix on nixos. I have specified the build
> users and the guix daemon isystemd service in my configuration.nix file and
> all works.
>
> I am then following the binary installation instructions. As root I then
> try to test by running
>
> guix package -i hello
>
> However rather than install the small hello package, guix is installing a
> large number of dependencies such as gcc etc. It is taking a long time. IS
> this normal ?
>
> I am also having trouble setting up the environme for running guix as
> non-root user.
>
This is on a laptop.
>
on debian i do this.
 sudo chown guy: /var/guix/profiles/per-user/guy
or
sudo chown -r guy: /var/guix/profiles/per-user/guy

replace guy by your user name

Is this the right mailing list to ask for help ?
>
> Thanks
> Roy.
>
> --
> ********************************
> Roy Lemmon
> STFC Daresbury Laboratory
> United Kingdom
> ********************************
>

[-- Attachment #2: Type: text/html, Size: 2289 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: guix installation on nixos
  2019-02-13 19:03 ` Guy fleury
@ 2019-02-14 16:04   ` Roy Lemmon
  2019-02-14 18:08     ` Guy fleury
                       ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Roy Lemmon @ 2019-02-14 16:04 UTC (permalink / raw)
  To: Guy fleury; +Cc: help-guix

Guy fleury <hoonandon@gmail.com> writes:

Hi,

Thanks for your help. I have done this but still having problems. I can
now run guix as root and install correctly.

However, if I setup for a normal user as in the manual:

cd /usr/local/bin
ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix

I still cannot make it work for that normal user. I made sure
/usr/local/bin is in PATH. But the guix command is simply not found.

Thanks for any help.

Cheers
Roy.

> Le mer. 13 févr. 2019 à 19:17, Roy Lemmon <roy@roylemmon.com> a écrit :
>
>  Hi,
>
>  I am having trouble installing guix on nixos. I have specified the build users and the guix daemon isystemd service in my configuration.nix file and all works. 
>
>  I am then following the binary installation instructions. As root I then try to test by running 
>
>  guix package -i hello
>
>  However rather than install the small hello package, guix is installing a large number of dependencies such as gcc etc. It is taking a long time. IS this normal ? 
>
>  I am also having trouble setting up the environme for running guix as non-root user.  
>
>  This is on a laptop.
>
> on debian i do this.
>  sudo chown guy: /var/guix/profiles/per-user/guy
> or 
> sudo chown -r guy: /var/guix/profiles/per-user/guy
>
> replace guy by your user name
>
>  Is this the right mailing list to ask for help ?
>
>  Thanks
>  Roy.
>
>  -- 
>  ********************************
>  Roy Lemmon
>  STFC Daresbury Laboratory
>  United Kingdom
>  ********************************

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: guix installation on nixos
  2019-02-14 16:04   ` Roy Lemmon
@ 2019-02-14 18:08     ` Guy fleury
  2019-02-14 18:39     ` Guy fleury
  2019-02-15 15:49     ` Leo Famulari
  2 siblings, 0 replies; 10+ messages in thread
From: Guy fleury @ 2019-02-14 18:08 UTC (permalink / raw)
  To: Roy Lemmon; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1825 bytes --]

Hi,
It will be useful if you print the error message you get.
Le 14 févr. 2019 18:04, "Roy Lemmon" <roy@roylemmon.com> a écrit :

> Guy fleury <hoonandon@gmail.com> writes:
>
> Hi,
>
> Thanks for your help. I have done this but still having problems. I can
> now run guix as root and install correctly.
>
> However, if I setup for a normal user as in the manual:
>
> cd /usr/local/bin
> ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix
>
> I still cannot make it work for that normal user. I made sure
> /usr/local/bin is in PATH. But the guix command is simply not found.
>
> Thanks for any help.
>
> Cheers
> Roy.
>
> > Le mer. 13 févr. 2019 à 19:17, Roy Lemmon <roy@roylemmon.com> a écrit :
> >
> >  Hi,
> >
> >  I am having trouble installing guix on nixos. I have specified the
> build users and the guix daemon isystemd service in my configuration.nix
> file and all works.
> >
> >  I am then following the binary installation instructions. As root I
> then try to test by running
> >
> >  guix package -i hello
> >
> >  However rather than install the small hello package, guix is installing
> a large number of dependencies such as gcc etc. It is taking a long time.
> IS this normal ?
> >
> >  I am also having trouble setting up the environme for running guix as
> non-root user.
> >
> >  This is on a laptop.
> >
> > on debian i do this.
> >  sudo chown guy: /var/guix/profiles/per-user/guy
> > or
> > sudo chown -r guy: /var/guix/profiles/per-user/guy
> >
> > replace guy by your user name
> >
> >  Is this the right mailing list to ask for help ?
> >
> >  Thanks
> >  Roy.
> >
> >  --
> >  ********************************
> >  Roy Lemmon
> >  STFC Daresbury Laboratory
> >  United Kingdom
> >  ********************************
>

[-- Attachment #2: Type: text/html, Size: 2408 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: guix installation on nixos
  2019-02-14 16:04   ` Roy Lemmon
  2019-02-14 18:08     ` Guy fleury
@ 2019-02-14 18:39     ` Guy fleury
  2019-02-15 13:13       ` Roy Lemmon
  2019-02-15 15:49     ` Leo Famulari
  2 siblings, 1 reply; 10+ messages in thread
From: Guy fleury @ 2019-02-14 18:39 UTC (permalink / raw)
  To: Roy Lemmon; +Cc: help-guix

2019-02-14 17:04 UTC+01:00, Roy Lemmon <roy@roylemmon.com>:
> Guy fleury <hoonandon@gmail.com> writes:
>
> Hi,
>
> Thanks for your help. I have done this but still having problems. I can
> now run guix as root and install correctly.
>
> However, if I setup for a normal user as in the manual:
>
> cd /usr/local/bin
> ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix

> I still cannot make it work for that normal user. I made sure
> /usr/local/bin is in PATH. But the guix command is simply not found.

 i have miss this.
 you can go to IRC Freenode #guix the guix developer will help you easily.

> Thanks for any help.
>
> Cheers
> Roy.
>
>> Le mer. 13 févr. 2019 à 19:17, Roy Lemmon <roy@roylemmon.com> a écrit :
>>
>>  Hi,
>>
>>  I am having trouble installing guix on nixos. I have specified the build
>> users and the guix daemon isystemd service in my configuration.nix file
>> and all works.
>>
>>  I am then following the binary installation instructions. As root I then
>> try to test by running
>>
>>  guix package -i hello
>>
>>  However rather than install the small hello package, guix is installing a
>> large number of dependencies such as gcc etc. It is taking a long time. IS
>> this normal ?
>>
>>  I am also having trouble setting up the environme for running guix as
>> non-root user.
>>
>>  This is on a laptop.
>>
>> on debian i do this.
>>  sudo chown guy: /var/guix/profiles/per-user/guy
>> or
>> sudo chown -r guy: /var/guix/profiles/per-user/guy
>>
>> replace guy by your user name
>>
>>  Is this the right mailing list to ask for help ?
>>
>>  Thanks
>>  Roy.
>>
>>  --
>>  ********************************
>>  Roy Lemmon
>>  STFC Daresbury Laboratory
>>  United Kingdom
>>  ********************************
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: guix installation on nixos
  2019-02-14 18:39     ` Guy fleury
@ 2019-02-15 13:13       ` Roy Lemmon
  0 siblings, 0 replies; 10+ messages in thread
From: Roy Lemmon @ 2019-02-15 13:13 UTC (permalink / raw)
  To: Guy fleury; +Cc: help-guix

Guy fleury <hoonandon@gmail.com> writes:

Hi,

I have tried IRC #guix but its very quiet today ...

Thinking again, I think my problem is that I do not have a .guix-profile
in my home directory. I have a .nix-profile for example. And I have such
a profile in my root home directory.

If I understood, I thought the guix-daemon would create that
automatically for each user.

So I am not sure how to proceed.

Cheers
Roy.

> 2019-02-14 17:04 UTC+01:00, Roy Lemmon <roy@roylemmon.com>:
>> Guy fleury <hoonandon@gmail.com> writes:
>>
>> Hi,
>>
>> Thanks for your help. I have done this but still having problems. I can
>> now run guix as root and install correctly.
>>
>> However, if I setup for a normal user as in the manual:
>>
>> cd /usr/local/bin
>> ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix
>
>> I still cannot make it work for that normal user. I made sure
>> /usr/local/bin is in PATH. But the guix command is simply not found.
>
>  i have miss this.
>  you can go to IRC Freenode #guix the guix developer will help you easily.
>
>> Thanks for any help.
>>
>> Cheers
>> Roy.
>>
>>> Le mer. 13 févr. 2019 à 19:17, Roy Lemmon <roy@roylemmon.com> a écrit :
>>>
>>>  Hi,
>>>
>>>  I am having trouble installing guix on nixos. I have specified the build
>>> users and the guix daemon isystemd service in my configuration.nix file
>>> and all works.
>>>
>>>  I am then following the binary installation instructions. As root I then
>>> try to test by running
>>>
>>>  guix package -i hello
>>>
>>>  However rather than install the small hello package, guix is installing a
>>> large number of dependencies such as gcc etc. It is taking a long time. IS
>>> this normal ?
>>>
>>>  I am also having trouble setting up the environme for running guix as
>>> non-root user.
>>>
>>>  This is on a laptop.
>>>
>>> on debian i do this.
>>>  sudo chown guy: /var/guix/profiles/per-user/guy
>>> or
>>> sudo chown -r guy: /var/guix/profiles/per-user/guy
>>>
>>> replace guy by your user name
>>>
>>>  Is this the right mailing list to ask for help ?
>>>
>>>  Thanks
>>>  Roy.
>>>
>>>  --
>>>  ********************************
>>>  Roy Lemmon
>>>  STFC Daresbury Laboratory
>>>  United Kingdom
>>>  ********************************
>>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: guix installation on nixos
  2019-02-14 16:04   ` Roy Lemmon
  2019-02-14 18:08     ` Guy fleury
  2019-02-14 18:39     ` Guy fleury
@ 2019-02-15 15:49     ` Leo Famulari
  2019-02-15 16:03       ` Roy Lemmon
  2 siblings, 1 reply; 10+ messages in thread
From: Leo Famulari @ 2019-02-15 15:49 UTC (permalink / raw)
  To: Roy Lemmon; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 526 bytes --]

On Thu, Feb 14, 2019 at 04:04:03PM +0000, Roy Lemmon wrote:
> Thanks for your help. I have done this but still having problems. I can
> now run guix as root and install correctly.
> 
> However, if I setup for a normal user as in the manual:
> 
> cd /usr/local/bin
> ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix
> 
> I still cannot make it work for that normal user. I made sure
> /usr/local/bin is in PATH. But the guix command is simply not found.

What happens if you run `/usr/local/bin/guix`?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: guix installation on nixos
  2019-02-15 15:49     ` Leo Famulari
@ 2019-02-15 16:03       ` Roy Lemmon
  2019-02-15 16:19         ` Leo Famulari
  0 siblings, 1 reply; 10+ messages in thread
From: Roy Lemmon @ 2019-02-15 16:03 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix

Leo Famulari <leo@famulari.name> writes:

That works. It tells me to install the locale package etc. Which I
do. Now there is a .guix-profile directory in my user home directory
/home/rlemmon

When I now install a package using the full name /usr/local/bin/guix
e.g. the hello package, it is correctly installed in ~/.guix-profile/bin

However, I still cannot run guix (or hello) without the full path. I
have tried adding /usr/local/bin to my PATH.

What environmental variables need to be set for a standard user ? 

> On Thu, Feb 14, 2019 at 04:04:03PM +0000, Roy Lemmon wrote:
>> Thanks for your help. I have done this but still having problems. I can
>> now run guix as root and install correctly.
>> 
>> However, if I setup for a normal user as in the manual:
>> 
>> cd /usr/local/bin
>> ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix
>> 
>> I still cannot make it work for that normal user. I made sure
>> /usr/local/bin is in PATH. But the guix command is simply not found.
>
> What happens if you run `/usr/local/bin/guix`?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: guix installation on nixos
  2019-02-15 16:03       ` Roy Lemmon
@ 2019-02-15 16:19         ` Leo Famulari
  0 siblings, 0 replies; 10+ messages in thread
From: Leo Famulari @ 2019-02-15 16:19 UTC (permalink / raw)
  To: Roy Lemmon; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 877 bytes --]

On Fri, Feb 15, 2019 at 04:03:22PM +0000, Roy Lemmon wrote:
> However, I still cannot run guix (or hello) without the full path. I
> have tried adding /usr/local/bin to my PATH.
> 
> What environmental variables need to be set for a standard user ? 

I recommend sourcing the file '~/.guix-profile/etc/profile' in your
login shell initialization file. This should handle all the environment
variables you need to use your packages.

For bash, this means doing it in '~/.bash_profile'.

For Zsh, '~/.profile'.

Since it is sourced for *login shells* you will need to log in again, or
start a new login shell like `bash --login`.

The warning about the locales is described later in the installation
instructions. To summarize, you'll also need to set the GUIX_LOCPATH
variable. The whole locales rigamarole will go away soon:

<https://bugs.gnu.org/34480>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-02-15 16:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-13 16:09 guix installation on nixos Roy Lemmon
2019-02-13 18:47 ` Leo Famulari
2019-02-13 19:03 ` Guy fleury
2019-02-14 16:04   ` Roy Lemmon
2019-02-14 18:08     ` Guy fleury
2019-02-14 18:39     ` Guy fleury
2019-02-15 13:13       ` Roy Lemmon
2019-02-15 15:49     ` Leo Famulari
2019-02-15 16:03       ` Roy Lemmon
2019-02-15 16:19         ` Leo Famulari

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).