unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* initial guix setup: unable to fork -- any recipe for the impatient?
@ 2014-08-07 10:50 Jan Nieuwenhuizen
  2014-08-07 13:48 ` David Thompson
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Nieuwenhuizen @ 2014-08-07 10:50 UTC (permalink / raw)
  To: guile-user

Hi,

I tried to get going with guix and again I was frustrated.  Is there
a tutorial or recipe that helps newbies to get started?

[Thinking that guix is a guile script, it very much surprised me that
 I need to bootstrap, configure and make.]

Anyway, below is what I tried

Greetings, Jan

$ ./bootstrap
$ ./configure && make
$ ./pre-inst-env guix package -i guile
$ guix package: error: failed to connect to `/usr/local/var/guix/daemon-socket/socket': No such file or directory
# oh, don't want that so, I probably need make install anyway?
# let's give up on pre-int-env for now and reconfigure into $HOME/pkg :-( 
$ ./configure --prefix=$HOME/pkg/guix
$ make && make install
$ eval $(sh-pkg) #puts ~/pkg/*/package in *PATH
guix package: error: failed to connect to `/usr/local/var/guix/daemon-socket/socket': No such file or directory
# arg, apparently some dependency on config.status is broken
$ make clean 
$ ./configure --prefix=$HOME/pkg/guix
make: *** No rule to make target `gnu/system/os-config.tmpl', needed by `doc/os-config.texi'.  Stop.
$ git status
	deleted:    gnu/system/os-config.tmpl
# great, well Git to the rescue
$ git reset --hard HEAD
$ ./configure --prefix=$HOME/pkg/guix
$ make && make install
$ hash -r
$ guix-daemon&
# yay!
$ guix package -i guile
guix build: error: build failed: creating directory `/gnu': Permission denied
$ mkdir ~/gnu
$ sudo ln -s /home/janneke/gnu /
$ guix package -i guile
accepted connection from pid 12571, uid 1000
guix build: error: build failed: `/gnu' is not a directory  # AAARG
$ sudo mkdir /gnu  # not happy with this single-user perspective :-(
$ sudo mount --bind /home/janneke/gnu /gnu
$ guix package -i guile
accepted connection from pid 25996, uid 1000
guix package: warning: ambiguous package specification `guile'
guix package: warning: choosing guile-2.0.11 from gnu/packages/base.scm:1130:33
substitute-binary: guix substitute-binary: warning: ACL for archive imports seems to be uninitialized, substitutes may be unavailable
# hmm, cannot find in the docs whether and how to initialize archive? anyway
The following derivations will be built:
   /gnu/store/60kbfbqhm43h1bn6mjzcz7yj27z6gi4b-profile.drv
    ...
   /gnu/store/7bihc3nms3pshmzhsv4wqyr9kgqn78a9-libgc-7.4.0.drv
   /gnu/store/4c2w8jchwkfd3flk5fg3kk282wx74rl1-gmp-6.0.0a.drv
guix package: error: build failed: unable to fork: Operation not permitted
1005 operations

:-(

I *am* very happy with Emacs' shell buffer, as you can see ;-)

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  



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

* Re: initial guix setup: unable to fork -- any recipe for the impatient?
  2014-08-07 10:50 initial guix setup: unable to fork -- any recipe for the impatient? Jan Nieuwenhuizen
@ 2014-08-07 13:48 ` David Thompson
  0 siblings, 0 replies; 2+ messages in thread
From: David Thompson @ 2014-08-07 13:48 UTC (permalink / raw)
  To: Jan Nieuwenhuizen, guile-user

Jan Nieuwenhuizen <janneke@gnu.org> writes:

> Hi,
>
> I tried to get going with guix and again I was frustrated.  Is there
> a tutorial or recipe that helps newbies to get started?
>
> [Thinking that guix is a guile script, it very much surprised me that
>  I need to bootstrap, configure and make.]

Guile source files are compiled to .go files, though they don't have to
be.  Things will just be slower to load initially.  In addition to
Scheme files, there are C++ source files to compile from the upstream
Nix project, so make is absolutely needed.  The configure phase is
needed not only to check for dependencies, but to pre-process *.in files
like guix/config.scm.in.

>
> Anyway, below is what I tried

[ Snipped long shell output ]

It looks like you've skipped over some of the installation steps
described in the manual.  It looks like you have some permission errors,
among other things.  See the "Installation" section for the details.

I also noticed that you resorted to "make install" to try to get things
to work.  You can start the guix daemon without installing by running
something like:

  sudo ./pre-inst-env guix-daemon --build-users-group=guix-builder

The above snippet assumes that you have already set up build users under
the group 'guix-builder'.

Hope this helps!

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate



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

end of thread, other threads:[~2014-08-07 13:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-07 10:50 initial guix setup: unable to fork -- any recipe for the impatient? Jan Nieuwenhuizen
2014-08-07 13:48 ` David Thompson

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