comparison en/appC-srcinstall.xml @ 749:7e7c47481e4f

Oops, this is the real merge for my hg's oddity
author Dongsheng Song <dongsheng.song@gmail.com>
date Fri, 20 Mar 2009 16:43:35 +0800
parents cfdb601a3c8b
children 1c13ed2130a7
comparison
equal deleted inserted replaced
748:d13c7c706a58 749:7e7c47481e4f
5 <title>Installing Mercurial from source</title> 5 <title>Installing Mercurial from source</title>
6 6
7 <sect1 id="sec.srcinstall.unixlike"> 7 <sect1 id="sec.srcinstall.unixlike">
8 <title>On a Unix-like system</title> 8 <title>On a Unix-like system</title>
9 9
10 <para>If you are using a Unix-like system that has a sufficiently 10 <para id="x_5e0">If you are using a Unix-like system that has a sufficiently
11 recent version of Python (2.3 or newer) available, it is easy to 11 recent version of Python (2.3 or newer) available, it is easy to
12 install Mercurial from source.</para> 12 install Mercurial from source.</para>
13 <orderedlist> 13 <orderedlist>
14 <listitem><para>Download a recent source tarball from <ulink 14 <listitem><para id="x_5e1">Download a recent source tarball from <ulink
15 url="http://www.selenic.com/mercurial/download">http://www.selenic.com/mercurial/download</ulink>.</para> 15 url="http://www.selenic.com/mercurial/download">http://www.selenic.com/mercurial/download</ulink>.</para>
16 </listitem> 16 </listitem>
17 <listitem><para>Unpack the tarball:</para> 17 <listitem><para id="x_5e2">Unpack the tarball:</para>
18 <programlisting>gzip -dc mercurial-MYVERSION.tar.gz | tar xf -</programlisting> 18 <programlisting>gzip -dc mercurial-MYVERSION.tar.gz | tar xf -</programlisting>
19 </listitem> 19 </listitem>
20 <listitem><para>Go into the source directory and run the 20 <listitem><para id="x_5e3">Go into the source directory and run the
21 installer script. This will build Mercurial and install it 21 installer script. This will build Mercurial and install it
22 in your home directory.</para> 22 in your home directory.</para>
23 <programlisting>cd mercurial-MYVERSION 23 <programlisting>cd mercurial-MYVERSION
24 python setup.py install --force --home=$HOME</programlisting> 24 python setup.py install --force --home=$HOME</programlisting>
25 </listitem> 25 </listitem>
26 </orderedlist> 26 </orderedlist>
27 <para>Once the install finishes, Mercurial will be in the 27 <para id="x_5e4">Once the install finishes, Mercurial will be in the
28 <literal>bin</literal> subdirectory of your home directory. 28 <literal>bin</literal> subdirectory of your home directory.
29 Don't forget to make sure that this directory is present in your 29 Don't forget to make sure that this directory is present in your
30 shell's search path.</para> 30 shell's search path.</para>
31 31
32 <para>You will probably need to set the <envar>PYTHONPATH</envar> 32 <para id="x_5e5">You will probably need to set the <envar>PYTHONPATH</envar>
33 environment variable so that the Mercurial executable can find 33 environment variable so that the Mercurial executable can find
34 the rest of the Mercurial packages. For example, on my laptop, 34 the rest of the Mercurial packages. For example, on my laptop,
35 I have set it to <literal>/home/bos/lib/python</literal>. The 35 I have set it to <literal>/home/bos/lib/python</literal>. The
36 exact path that you will need to use depends on how Python was 36 exact path that you will need to use depends on how Python was
37 built for your system, but should be easy to figure out. If 37 built for your system, but should be easy to figure out. If
41 41
42 </sect1> 42 </sect1>
43 <sect1> 43 <sect1>
44 <title>On Windows</title> 44 <title>On Windows</title>
45 45
46 <para>Building and installing Mercurial on Windows requires a 46 <para id="x_5e6">Building and installing Mercurial on Windows requires a
47 variety of tools, a fair amount of technical knowledge, and 47 variety of tools, a fair amount of technical knowledge, and
48 considerable patience. I very much <emphasis>do not 48 considerable patience. I very much <emphasis>do not
49 recommend</emphasis> this route if you are a <quote>casual 49 recommend</emphasis> this route if you are a <quote>casual
50 user</quote>. Unless you intend to hack on Mercurial, I 50 user</quote>. Unless you intend to hack on Mercurial, I
51 strongly suggest that you use a binary package instead.</para> 51 strongly suggest that you use a binary package instead.</para>
52 52
53 <para>If you are intent on building Mercurial from source on 53 <para id="x_5e7">If you are intent on building Mercurial from source on
54 Windows, follow the <quote>hard way</quote> directions on the 54 Windows, follow the <quote>hard way</quote> directions on the
55 Mercurial wiki at <ulink 55 Mercurial wiki at <ulink
56 url="http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall">http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall</ulink>, 56 url="http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall">http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall</ulink>,
57 and expect the process to involve a lot of fiddly work.</para> 57 and expect the process to involve a lot of fiddly work.</para>
58 58