forked from lix-project/lix
Update installation section
This commit is contained in:
parent
103e4e43cc
commit
215745415e
|
@ -6,7 +6,8 @@
|
||||||
|
|
||||||
<title>Installing a Binary Distribution</title>
|
<title>Installing a Binary Distribution</title>
|
||||||
|
|
||||||
<para>The easiest way to install Nix is to run the following command:
|
<para>If you are using Linux or Mac OS X, the easiest way to install
|
||||||
|
Nix is to run the following command:
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
$ bash <(curl https://nixos.org/nix/install)
|
$ bash <(curl https://nixos.org/nix/install)
|
||||||
|
@ -18,7 +19,7 @@ run this under your usual user account, <emphasis>not</emphasis> as
|
||||||
root. The script will invoke <command>sudo</command> to create
|
root. The script will invoke <command>sudo</command> to create
|
||||||
<filename>/nix</filename> if it doesn’t already exist. If you don’t
|
<filename>/nix</filename> if it doesn’t already exist. If you don’t
|
||||||
have <command>sudo</command>, you should manually create
|
have <command>sudo</command>, you should manually create
|
||||||
<command>/nix</command> first as root:
|
<command>/nix</command> first as root, e.g.:
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
$ mkdir /nix
|
$ mkdir /nix
|
||||||
|
@ -40,7 +41,7 @@ build system</link>.</para>
|
||||||
or upgraded using <command>rpm -U</command>. For example,
|
or upgraded using <command>rpm -U</command>. For example,
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
$ rpm -U nix-1.7-1.i386.rpm</screen>
|
$ rpm -U nix-1.8-1.i386.rpm</screen>
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -48,21 +49,21 @@ $ rpm -U nix-1.7-1.i386.rpm</screen>
|
||||||
install it like this:
|
install it like this:
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
$ dpkg -i nix_1.7-1_amd64.deb</screen>
|
$ dpkg -i nix_1.8-1_amd64.deb</screen>
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>For other platforms, including Mac OS X (Darwin), FreeBSD and
|
<para>For other platforms, including Mac OS X and other Linux
|
||||||
other Linux distributions, you can download a binary tarball that
|
distributions, you can download a binary tarball that contains Nix and
|
||||||
contains Nix and all its dependencies. (This is what the install
|
all its dependencies. (This is what the install script at
|
||||||
script at <uri>https://nixos.org/nix/install</uri> uses.) You should
|
<uri>https://nixos.org/nix/install</uri> uses.) You should unpack it
|
||||||
unpack it somewhere (e.g. in <filename>/tmp</filename>), and then run
|
somewhere (e.g. in <filename>/tmp</filename>), and then run the script
|
||||||
the script named <command>install</command> inside the binary tarball:
|
named <command>install</command> inside the binary tarball:
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
alice$ cd /tmp
|
alice$ cd /tmp
|
||||||
alice$ tar xfj nix-1.7-x86_64-darwin.tar.bz2
|
alice$ tar xfj nix-1.8-x86_64-darwin.tar.bz2
|
||||||
alice$ cd nix-1.7-x86_64-darwin
|
alice$ cd nix-1.8-x86_64-darwin
|
||||||
alice$ ./install
|
alice$ ./install
|
||||||
</screen>
|
</screen>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>Nix is pretty portable, so it should work on most other Unix
|
<para>Nix is fairly portable, so it should work on most platforms that
|
||||||
platforms as well.</para>
|
support POSIX threads and have a C++11 compiler.</para>
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
<title>Troubleshooting</title>
|
<title>Troubleshooting</title>
|
||||||
|
|
||||||
<para>This section provides solutions for some common problems. See
|
<para>This section provides solutions for some common problems. See
|
||||||
the <link xlink:href="http://bugs.strategoxt.org/browse/NIX">Nix
|
the <link xlink:href="https://github.com/NixOS/nix/issues">Nix bug
|
||||||
bug tracker</link> for a list of currently known issues.</para>
|
tracker</link> for a list of currently known issues.</para>
|
||||||
|
|
||||||
<xi:include href="collisions-nixenv.xml" />
|
<xi:include href="collisions-nixenv.xml" />
|
||||||
<xi:include href="links-nix-store.xml" />
|
<xi:include href="links-nix-store.xml" />
|
||||||
|
|
Loading…
Reference in a new issue