From: Andreas Enge <andreas@enge.fr>
To: bug-guix@gnu.org
Subject: Creating user profiles
Date: Sun, 13 Jan 2013 14:23:36 +0100 [thread overview]
Message-ID: <201301131423.36130.andreas@enge.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 1818 bytes --]
Following the commit:
commit b9e5c0a949fa627da55ea53fd71dfa96ad8a2b4b
guix-package: Create ~/.guix-profile when it doesn't exist.
I finally dropped giving the explicit profile parameter to guix-package.
This results in the following error when installing a package:
Backtrace:
In ice-9/boot-9.scm:
149: 12 [catch #t #<catch-closure 12f39c0> ...]
157: 11 [#<procedure 128f0f0 ()>]
In unknown file:
?: 10 [catch-closure]
In ice-9/boot-9.scm:
63: 9 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
407: 8 [eval # #]
In unknown file:
?: 7 [call-with-input-string "(apply (module-ref (resolve-interface
'(guix-package)) 'guix-package) (cdr (command-line)))" ...]
In ice-9/command-line.scm:
174: 6 [#<procedure 120e2a0 at ice-9/command-line.scm:169:3 (port)>
#<input: string 10b60d0>]
In unknown file:
?: 5 [eval (apply (module-ref # #) (cdr #)) #<directory (guile-user)
12f5d80>]
In ice-9/boot-9.scm:
149: 4 [catch srfi-34 #<procedure 1290c40 at guix/ui.scm:71:2 ()> ...]
157: 3 [#<procedure 1753870 ()>]
In /usr/local/bin/guix-package:
475: 2 [#<procedure 13b8c60 at /usr/local/bin/guix-package:468:4 ()>]
409: 1 [process-actions (# #)]
In unknown file:
?: 0 [symlink "/nix/store/g4bnzikcjgdcgmcj7by815wb9ykz470l-user-
environment" ...]
In fact, a symbolic link $HOME/.guix-profile is created to the non-existing
file /usr/local/guix-git/var/nix/profiles/per-user/privat/guix-profile
(where /usr/local/guix-git/ is my installation prefix).
The user environment /nix/store/g4bnzikcjgdcgmcj7by815wb9ykz470l-user-
environment exists in the nix store.
I think the problem is that only the directory /usr/local/guix-
git/var/nix/profiles exists, but that it is empty; maybe one should first
create the directory $PREFIX/var/nix/profiles/per-user/$USER if it does not
exist yet?
Andreas
[-- Attachment #2: Type: text/html, Size: 7801 bytes --]
next reply other threads:[~2013-01-13 13:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-13 13:23 Andreas Enge [this message]
2013-01-13 22:05 ` Creating user profiles Ludovic Courtès
2013-01-13 22:31 ` Andreas Enge
2013-01-13 22:45 ` Ludovic Courtès
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=201301131423.36130.andreas@enge.fr \
--to=andreas@enge.fr \
--cc=bug-guix@gnu.org \
/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).