Advertisement
Guest User

Problems getting started with nix

a guest
Sep 24th, 2011
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. md:~ maarten$ nix-channel --update
  2. downloading Nix expressions from `http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable//nixexprs.tar.bz2'...
  3. % Total % Received % Xferd Average Speed Time Time Time Current
  4. Dload Upload Total Spent Left Speed
  5. 100 3465k 100 3465k 0 0 857k 0 0:00:04 0:00:04 --:--:-- 942k
  6. error: creating directory `/nix/var/nix/db/info': Permission denied
  7. cannot fetch `http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable//nixexprs.tar.bz2' at /usr/local/bin/nix-channel line 114.
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. md:nix-0.16 maarten$ nix-env -i hello
  15. installing `hello-2.7'
  16. don't know how to build the following paths (may be caused by read-only store access):
  17. /nix/store/w5yi35kn33565lh7lgn3ldjxwg2sg2q8-hello-2.7.drv
  18. error: cannot build derivation `/nix/store/w5yi35kn33565lh7lgn3ldjxwg2sg2q8-hello-2.7.drv' - no write access to the Nix store
  19.  
  20.  
  21.  
  22.  
  23.  
  24. md:nix-0.16 maarten$ sudo nix-env -i hello
  25. Password:
  26. installing `hello-2.7'
  27. ...lots of output...
  28. checking whether mknod can create fifo without root privileges... configure: error: in `/private/tmp/nix-build-016anfy1ddnzsfxnnap7ff40ys3wbr48-gnutar-1.25.drv-0/tar-1.25':
  29. configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
  30. See `config.log' for more details.
  31. \e[q\e[qbuilder for `/nix/store/016anfy1ddnzsfxnnap7ff40ys3wbr48-gnutar-1.25.drv' failed with exit code 1
  32. cannot build derivation `/nix/store/cwvjh9lcnnkprrlq0vqchcyfa58ipcni-stdenv-nix.drv': 1 dependencies couldn't be built
  33. cannot build derivation `/nix/store/w5yi35kn33565lh7lgn3ldjxwg2sg2q8-hello-2.7.drv': 1 dependencies couldn't be built
  34. error: build of `/nix/store/w5yi35kn33565lh7lgn3ldjxwg2sg2q8-hello-2.7.drv' failed
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. md:nix-0.16 maarten$ export FORCE_UNSAFE_CONFIGURE=1
  43. md:nix-0.16 maarten$ sudo nix-env -i hello
  44. Password:
  45. installing `hello-2.7'
  46. ...lots of output...
  47. checking whether mknod can create fifo without root privileges... configure: error: in `/private/tmp/nix-build-016anfy1ddnzsfxnnap7ff40ys3wbr48-gnutar-1.25.drv-0/tar-1.25':
  48. configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
  49. See `config.log' for more details.
  50. \e[q\e[qbuilder for `/nix/store/016anfy1ddnzsfxnnap7ff40ys3wbr48-gnutar-1.25.drv' failed with exit code 1
  51. cannot build derivation `/nix/store/cwvjh9lcnnkprrlq0vqchcyfa58ipcni-stdenv-nix.drv': 1 dependencies couldn't be built
  52. cannot build derivation `/nix/store/w5yi35kn33565lh7lgn3ldjxwg2sg2q8-hello-2.7.drv': 1 dependencies couldn't be built
  53. error: build of `/nix/store/w5yi35kn33565lh7lgn3ldjxwg2sg2q8-hello-2.7.drv' failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement