unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>
To: Laura Lazzati <laura.lazzati.15@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>,
	Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Subject: Re: [outreach] Help trying to create R package
Date: Thu, 18 Oct 2018 19:41:39 +0200	[thread overview]
Message-ID: <20181018194139.0cbf30ed@alma-ubu> (raw)
In-Reply-To: <CAPNLzUOvph7nEj+=ksm6u=fR18XU+grxBJ6LB6gnSc2KVA=+-Q@mail.gmail.com>

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

On Thu, 18 Oct 2018 14:26:50 -0300
Laura Lazzati <laura.lazzati.15@gmail.com> wrote:

> On Thu, Oct 18, 2018 at 1:18 PM Laura Lazzati
> <laura.lazzati.15@gmail.com> wrote:
> >
> > On Thu, Oct 18, 2018 at 12:40 PM Gábor Boskovits
> > <boskovits@gmail.com> wrote:  
> > >
> > > Laura Lazzati <laura.lazzati.15@gmail.com> ezt írta (időpont:
> > > 2018. okt. 18., Cs, 17:26):  
> > > >
> > > > On Thu, Oct 18, 2018 at 12:15 PM Gábor Boskovits
> > > > <boskovits@gmail.com> wrote:  
> > > > >
> > > > > Hi Laura,
> > > > >
> > > > > Laura Lazzati <laura.lazzati.15@gmail.com> ezt írta (időpont:
> > > > > 2018. okt. 18., Cs, 16:49):  
> > > > > >
> > > > > > On Thu, Oct 18, 2018 at 4:50 AM Gábor Boskovits
> > > > > > <boskovits@gmail.com> wrote:  
> > > > > > >
> > > > > > > Wow, Björn, you were so fast again :)
> > > > > > >
> > > > > > > I just got around this right now.  
> > > > > > Again, thank both for being so kind :)  
> > > > > > >
> > > > > > > Björn Höfling <bjoern.hoefling@bjoernhoefling.de> ezt
> > > > > > > írta (időpont: 2018. okt. 18., Cs, 8:54):  
> > > > > > > >
> > > > > > > > Hi Laura,
> > > > > > > >
> > > > > > > > On Wed, 17 Oct 2018 22:36:02 -0300
> > > > > > > > Laura Lazzati <laura.lazzati.15@gmail.com> wrote:
> > > > > > > >
> > > > > > > >  
> > > > > > > > > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing  
> > > > > > > > > I have already read this chapter, but I am messed up.
> > > > > > > > > I have already cloned from git, but I have some
> > > > > > > > > questions: 1) Do I need to install everything from
> > > > > > > > > the git repo in my distro?  
> > > > > > > >
> > > > > > > > I'm not sure if I understand you right. You ask if you
> > > > > > > > "need to install everything from the git in my
> > > > > > > > distro?". I don't get that. Let me tell what I mean:
> > > > > > > >
> > > > > > > > You cloned that one, right?
> > > > > > > >
> > > > > > > > git clone https://git.savannah.gnu.org/git/guix.git
> > > > > > > >
> > > > > > > > That is the source code of Guix. I.e. when you do a
> > > > > > > >
> > > > > > > > guix package -i hello
> > > > > > > >
> > > > > > > > then you use the binary "guix" command that you
> > > > > > > > installed in the beginning. And the repository you
> > > > > > > > cloned is just the source code, there is nothing in
> > > > > > > > there that you need to install.
> > > > > > > >
> > > > > > > >
> > > > > > > > Maybe you ment the list of software that is written
> > > > > > > > here:
> > > > > > > >
> > > > > > > > https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
> > > > > > > >
> > > > > > > > When building Guix from a checkout, the following
> > > > > > > > packages are required in addition to those mentioned in
> > > > > > > > the installation instructions (see Requirements).
> > > > > > > >
> > > > > > > >     GNU Autoconf;
> > > > > > > >     GNU Automake;
> > > > > > > >     GNU Gettext;
> > > > > > > >     GNU Texinfo;
> > > > > > > >     Graphviz;
> > > > > > > >     GNU Help2man (optional).
> > > > > > > >
> > > > > > > > So, yeah. In order to compile Guix from source, you
> > > > > > > > need all these.  
> > > > > > I was indeed trying to do this.
> > > > > >  
> > > > > > > >
> > > > > > > > But wait, read the next sentence. You have guix already
> > > > > > > > installed. Guix provides a VERY nice command, `guix
> > > > > > > > envirionment <PACKAGE>`. With that, Guix prepares an
> > > > > > > > "environment" that can be directly used to build
> > > > > > > > <PACKAGE>.
> > > > > > > >
> > > > > > > > So, if you enter:
> > > > > > > >
> > > > > > > > guix environment guix  
> > > > > > I have just did this :)  
> > > > > Great.  
> > > > > > > >
> > > > > > > > then Guix will know best what software in which version
> > > > > > > > it needs in order to build guix (in this case, itself,
> > > > > > > > don't get trapped by that self-circularity :-))
> > > > > > > >
> > > > > > > > When you are in, you can just follow the next steps
> > > > > > > > described:
> > > > > > > >
> > > > > > > > ./bootstrap  
> > > > > > This worked fine.  
> > > > > > > > ./configure --localstatedir=/var  
> > > > > >
> > > > > > This did not, I am getting this error:
> > > > > >
> > > > > > configure: checking for guile 2.2
> > > > > > configure: found guile 2.2
> > > > > > checking for guile-2.2... /usr/bin/guile-2.2
> > > > > > checking for Guile version >= 2.2... 2.2.3
> > > > > > checking for guild-2.2... no
> > > > > > checking for guile-config-2.2... no
> > > > > > checking for guile-tools-2.2... no
> > > > > > configure: error: 'guild' binary not found; please check
> > > > > > your guile-2.x installation.
> > > > > >  
> > > > >
> > > > > I don't know what to make of this, but you could try guix
> > > > > environment guix --ad-hoc guild.
> > > > > Please see if that helps, if not then I will have a closer
> > > > > look at this.  
> > > > I restored everything to the snapshot where I ended cloning
> > > > guix. I get this error when trying to run guix environme guix
> > > > --ad-hoc guild: guix environment: error: guild: unknown package
> > > >  
> > >
> > > Oops, my bad, yes. I've checked this more thoroughly, on my system
> > > guild is provided by guile, which should be provided by guile.
> > > Could you run a which guild and a which guile inside the guix
> > > environment guix?  
> > I went back to the previous snapshot several times.
> >
> > I was cloning the  guix and throwing guix environment guix without
> > doing cd guix After several times, I realized that I had a warning
> > in the output:
> >
> > building /gnu/store/ilscbls919b78vn9l7b2jb72jmalbxm8-profile.drv...
> > warning: collision encountered:
> >  /gnu/store/b5x786d3h552j2zp4ppvlz9dkbiqy2ng-ld-wrapper-0/bin/ld
> >  /gnu/store/srmqh29dpm50j8kj1pbqg2rgh053wgyp-binutils-2.30/bin/ld
> > warning: choosing
> > /gnu/store/b5x786d3h552j2zp4ppvlz9dkbiqy2ng-ld-wrapper-0/bin/ld
> > successfully
> > built /gnu/store/ilscbls919b78vn9l7b2jb72jmalbxm8-profile.drv But I
> > did not paid attention to that, echo $? was OK (0). And then ran
> > everything as I stated, facing all that issues.
> >
> > Now I've cloned the repo again, removing previously the guix
> > directory. did cd guix
> > and ran guix environment guix
> > Did not have that warning anymore, just the usual locale warning
> > that happens all the time.
> > ran ./bootstrap
> >
> > And in both cases (before restoring my VM state, and now) the result
> > of the which commands are:
> >
> > /gnu/store/2w5kxhmkq4zkamsgx1b40vr3ii1z4dxb-profile/bin/guild
> > and
> > /gnu/store/2w5kxhmkq4zkamsgx1b40vr3ii1z4dxb-profile/bin/guile
> >
> > I don't know if this is relevant or not, and if I should run the
> > .configure or not before you seing this.  
> I answer myself:
> ran
> $./configure --localstatedir=/var
> And same output.

Sad.

OK, first check again that you are working with the "right" guix:

Check 'which guix' and it should be the one in ~/.config/guix/bin/guix
If not, it was somewhere in the discussion already (Excuse my brevity,
need to go soon).

If that doesn't fix, I suppose still you have the "wrong" guile,
somehwere from Ubuntu. Try this:

guix environment --pure guix

or even stronger:

guix environment -C guix

These are stronger environments, the last one even a container (that
could cause even more trouble, ah, yes, the container will cause
trouble because it cannot access the build daemon, damn.)

The --pure and -C have the feature that they will blend out everything
from your current environment. Even "normal" stuff like ls, which, etc.

But you can enrich again your environment:

guix environment --pure guix --ad-hoc coreutils findutils which 

would be a good starter.

Read in manual about guix environment.

Hope this brings you a step further.

Again, sorry for brevity.

Björn

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  reply	other threads:[~2018-10-18 17:41 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-13 13:36 [outreach] Help trying to create R package Laura Lazzati
2018-10-13 17:58 ` Gábor Boskovits
2018-10-13 18:25 ` Catonano
2018-10-14  0:40   ` Laura Lazzati
2018-10-15 22:47     ` Laura Lazzati
2018-10-16  5:44       ` Björn Höfling
2018-10-16  6:23         ` Björn Höfling
2018-10-16  8:28           ` Gábor Boskovits
2018-10-16 13:13             ` Laura Lazzati
2018-10-16 22:18               ` Björn Höfling
2018-10-17  1:01                 ` Laura Lazzati
2018-10-17  7:17                   ` Björn Höfling
2018-10-17  8:21                     ` Gábor Boskovits
2018-10-17 14:27                       ` Laura Lazzati
2018-10-17 16:38                         ` Laura Lazzati
2018-10-17 17:13                           ` Clément Lassieur
2018-10-17 17:50                             ` Laura Lazzati
2018-10-18  1:36                     ` Laura Lazzati
2018-10-18  6:54                       ` Björn Höfling
2018-10-18  7:50                         ` Gábor Boskovits
2018-10-18 14:49                           ` Laura Lazzati
2018-10-18 15:15                             ` Gábor Boskovits
2018-10-18 15:25                               ` Laura Lazzati
2018-10-18 15:40                                 ` Gábor Boskovits
2018-10-18 16:18                                   ` Laura Lazzati
2018-10-18 17:26                                     ` Laura Lazzati
2018-10-18 17:41                                       ` Björn Höfling [this message]
2018-10-18 18:14                             ` Ricardo Wurmus
2018-10-18 18:17                               ` Laura Lazzati
2018-10-19  1:05                                 ` Laura Lazzati
2018-10-19  3:47                                   ` Laura Lazzati
2018-10-19  6:21                                     ` Gábor Boskovits
2018-10-19  7:09                                   ` Ricardo Wurmus
2018-10-19  7:29                                     ` Gábor Boskovits
2018-10-19 18:37                                       ` Laura Lazzati
2018-10-19 18:45                                         ` Gábor Boskovits
2018-10-19 20:35                                           ` Laura Lazzati
2018-10-19 21:25                                             ` Gábor Boskovits
2018-10-19 23:10                                               ` Laura Lazzati
2018-10-20  6:08                                                 ` Björn Höfling
2018-10-20  6:34                                                   ` Gábor Boskovits
2018-10-20 13:47                                                     ` Laura Lazzati
2018-10-20 14:01                                                   ` Ludovic Courtès
2018-11-02 19:44           ` Laura Lazzati
2018-11-02 20:12             ` Gábor Boskovits
2018-11-02 20:17               ` Laura Lazzati

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=20181018194139.0cbf30ed@alma-ubu \
    --to=bjoern.hoefling@bjoernhoefling.de \
    --cc=guix-devel@gnu.org \
    --cc=laura.lazzati.15@gmail.com \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /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 public inbox

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

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