[Nix-dev] Problems getting started with nix

Sander van der Burg - EWI S.vanderBurg at tudelft.nl
Sun Sep 25 13:04:03 CEST 2011


Probably you have installed Nix as root and you're trying to update the channel as a non-privileged user.

The simplest solution is probably by changing the permissions of the /nix directory to your own user account, e.g.:

chown -R myuser:mygroup /nix

Then everything should work fine!

Another solution is by running the nix daemon (which allows secure sharing of Nix components between arbitrary users on a single system), but this isn't very well documented how to do this on regular Linux distributions.
________________________________________
From: nix-dev-bounces at lists.science.uu.nl [nix-dev-bounces at lists.science.uu.nl] on behalf of Maarten Derickx [m.derickx.student at gmail.com]
Sent: Sunday, September 25, 2011 12:40 AM
To: nix-dev at lists.science.uu.nl
Subject: [Nix-dev] Problems getting started with nix

Dear nix developers,

After reading http://fixingscientificsoftwaredistribution.blogspot.com/
(a blog on wich some people try to get ideas and experiences for a new
scientific software distribution possibly based on nix) I got
interested in what nix really was so I tried to install and run it as
described on:


http://hydra.nixos.org/build/565033/download/1/manual/#chap-quick-start

But doing that I got some errors. I tried to work around them but did
not succeed in that.
I pasted relevant parts of the terminal session on:

http://pastebin.com/xeSYBHyn


Not I got around the problems of `nix-channel --update` by doing `sudo
nix-channel --update` but later on I get similar acces problems.

I installed nix as root just as suggested in the quick start. I did
not supply the --prefix and --with-store-dir=path to make install. And
I'm running OS X 10.6.8 and the nix version is nix-0.16

Thanks in advance,
Maarten Derickx
_______________________________________________
nix-dev mailing list
nix-dev at lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list