From mboxrd@z Thu Jan 1 00:00:00 1970 From: rohit yadav Subject: Re: [Non-root Guix]: Unable to build guix Date: Thu, 2 May 2019 16:14:27 -0500 Message-ID: References: <87ftpwwq9l.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ab44e90587ee20c9" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:32842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMJ35-0007yl-8V for guix-devel@gnu.org; Thu, 02 May 2019 17:15:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMJ2z-00072i-FI for guix-devel@gnu.org; Thu, 02 May 2019 17:15:21 -0400 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]:40332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMJ2v-0006ot-Fy for guix-devel@gnu.org; Thu, 02 May 2019 17:15:15 -0400 Received: by mail-ot1-x336.google.com with SMTP id w6so3467475otl.7 for ; Thu, 02 May 2019 14:15:06 -0700 (PDT) Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com. [209.85.210.48]) by smtp.gmail.com with ESMTPSA id l17sm46472otj.52.2019.05.02.14.15.03 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 02 May 2019 14:15:03 -0700 (PDT) Received: by mail-ot1-f48.google.com with SMTP id b18so3476768otq.3 for ; Thu, 02 May 2019 14:15:03 -0700 (PDT) In-Reply-To: <87ftpwwq9l.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org --000000000000ab44e90587ee20c9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ricardo, On Thu, May 2, 2019 at 3:33 PM Ricardo Wurmus wrote: > > Hi, > > > I am trying to prepare guix for installing at non-root location. I have > > followed the documentation available here: > > > https://github.com/pjotrp/guix-notes/blob/master/INSTALL.org#error-in-pro= cedure-scm-error-no-code-for-module-gcrypt-hash > > I=E2=80=99d just like to note that this is not official documentation of = the > Guix project. I don=E2=80=99t know if this is still accurate information= . > > I understand that this is not an official documentation. I installed guix through office documentation on my system. It is working fine. > Do you want to build everything from source on your system or do you > prefer to use binaries from the Guix project=E2=80=99s build farms? Do y= ou have > access to user namespaces / can you use =E2=80=9Cunshare=E2=80=9D for fil= e system > shenanigans? > I need to build guix for non-root location because at several places its hard to convince to use such system. However, I need several packages which are not usually available or outdated. The guix projects allows me to do so. To accomplish that I need truly non-root permission oriented method to bootstrap and install whatever I deem necessary for my use case. Unfortunately, I am stuck at Centos6 which uses old kernel 2.6.32-696.el6.x86_64. I am able to install nix on this system at non-root location. It works fine but NIx community has decided to use 2.0 which only works on newer kernel. Therefore, I have to now backport several packages. Making it really hard because lot of packages are broken. Its manageable but not ideal. Whereas the guix seems to be independent of kernel (atleast that is my assumption so far). > > > ./pre-inst-env guix package -i guix > > We don=E2=80=99t recommend using Guix from a git checkout in most cases, = because=E2=80=A6 > > > substitute: ERROR: In procedure scm-error: > > substitute: no code for module (gcrypt hash) > I understand but that is why my personal work machine (running Ubuntu 18.04) is using the 1.0.0 guix not the latest git repo one. Also, I am boostraping guix/gnu store from tag v1.0.0. > > =E2=80=A6you would need to take care of providing the appropriate Guile > environment all by yourself whereas =E2=80=9Cguix pull=E2=80=9D does all = of this for > you. This error tells you that guile-gcrypt is not available in the > environment in which the daemon runs. > This is the place where I am struggling. I am not sure what more do I need to do then described in pjotrp notes. I could not find anything specific in the guix documentation as well to accomplish this. I would also like to suggest an alternative to a root-less installation. > At the HPC cluster where I work we run the guix-daemon as root on a > virtual machine where /gnu/store is a writable NFS share. Every machine > that uses Guix only needs to mount this share as read-only. > This option is not available as I stated earlier, I do not have the root permission. > > -- > Ricardo > > --Rohit --000000000000ab44e90587ee20c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ricardo,

=


On Thu, May 2, 2019 at 3:33 P= M Ricardo Wurmus <rekado@elephly.net> wrote:

Hi,

> I am trying to prepare guix for installing at non-root location. I hav= e
> followed the documentation available here:
> https://github.com/pjotrp/guix-notes/blob/master/I= NSTALL.org#error-in-procedure-scm-error-no-code-for-module-gcrypt-hash<= br>
I=E2=80=99d just like to note that this is not official documentation of th= e
Guix project.=C2=A0 I don=E2=80=99t know if this is still accurate informat= ion.

I understand tha= t this is not an official documentation. I installed guix through office do= cumentation on my system. It is working fine.=C2=A0
=C2=A0=
Do you want to build everything from source on your system or do you
prefer to use binaries from the Guix project=E2=80=99s build farms?=C2=A0 D= o you have
access to user namespaces / can you use =E2=80=9Cunshare=E2=80=9D for file = system
shenanigans?
I need to build guix for non-root location because at several pla= ces its hard to convince to use such system. However, I need several packag= es which are not usually available or outdated. The guix projects allows me= to do so. To accomplish that I need truly non-root permission oriented met= hod to bootstrap and install whatever I deem necessary for my use case.=C2= =A0
Unfortunately, I am stuck at Centos6 which uses old= kernel=C2=A02.6.32-696.el6.x86_64. I am able to install nix on this system= at non-root location. It works fine but NIx community has decided to use 2= .0 which only works on newer kernel. Therefore, I have to now backport seve= ral packages. Making it really hard because lot of packages are broken. Its= manageable but not ideal. Whereas the guix seems to be independent of kern= el (atleast that is my assumption so far).

> ./pre-inst-env guix package -i guix

We don=E2=80=99t recommend using Guix from a git checkout in most cases, be= cause=E2=80=A6

> substitute: ERROR: In procedure scm-error:
> substitute: no code for module (gcrypt hash)

=
I understand but that is why my p= ersonal work machine (running Ubuntu 18.04) is using the 1.0.0 guix not the= latest git repo one. Also, I am boostraping guix/gnu store from tag v1.0.0= .=C2=A0 =C2=A0

=E2=80=A6you would need to take care of providing the appropriate Guile
environment all by yourself whereas =E2=80=9Cguix pull=E2=80=9D does all of= this for
you.=C2=A0 This error tells you that guile-gcrypt is not available in the environment in which the daemon runs.

<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ;font-size:small;color:rgb(0,0,0)">This is the place where I am struggling.= I am not sure what more do I need to do then described in pjotrp notes. I = could not find anything specific in the guix documentation as well to accom= plish this.

I would also like to suggest an alternative to a root-less installation. At the HPC cluster where I work we run the guix-daemon as root on a
virtual machine where /gnu/store is a writable NFS share.=C2=A0 Every machi= ne
that uses Guix only needs to mount this share as read-only.

This option is not avai= lable as I stated earlier, I do not have the root permission.

--
Ricardo

--Rohit= =C2=A0
--000000000000ab44e90587ee20c9--