Mercurial > hgbook
comparison en/appC-srcinstall.xml @ 658:b90b024729f1
WIP DocBook snapshot that all compiles. Mirabile dictu!
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 18 Feb 2009 00:22:09 -0800 |
parents | en/appC-srcinstall.tex@5cd47f721686 |
children | 13513d2a128d |
comparison
equal
deleted
inserted
replaced
657:8631da51309b | 658:b90b024729f1 |
---|---|
1 <!-- vim: set filetype=docbkxml shiftwidth=2 autoindent expandtab tw=77 : --> | |
2 | |
3 <appendix id="chap:srcinstall"> | |
4 <title>Installing Mercurial from source</title> | |
5 | |
6 <sect1 id="sec:srcinstall:unixlike"> | |
7 <title>On a Unix-like system</title> | |
8 | |
9 <para>If you are using a Unix-like system that has a sufficiently | |
10 recent version of Python (2.3 or newer) available, it is easy to | |
11 install Mercurial from source.</para> | |
12 <orderedlist> | |
13 <listitem><para>Download a recent source tarball from <ulink | |
14 url="http://www.selenic.com/mercurial/download">http://www.selenic.com/mercurial/download</ulink>.</para> | |
15 </listitem> | |
16 <listitem><para>Unpack the tarball:</para> | |
17 <programlisting>gzip -dc mercurial-MYVERSION.tar.gz | tar xf -</programlisting> | |
18 </listitem> | |
19 <listitem><para>Go into the source directory and run the | |
20 installer script. This will build Mercurial and install it | |
21 in your home directory.</para> | |
22 <programlisting>cd mercurial-MYVERSION | |
23 python setup.py install --force --home=$HOME</programlisting> | |
24 </listitem> | |
25 </orderedlist> | |
26 <para>Once the install finishes, Mercurial will be in the | |
27 <literal>bin</literal> subdirectory of your home directory. | |
28 Don't forget to make sure that this directory is present in your | |
29 shell's search path.</para> | |
30 | |
31 <para>You will probably need to set the <envar>PYTHONPATH</envar> | |
32 environment variable so that the Mercurial executable can find | |
33 the rest of the Mercurial packages. For example, on my laptop, | |
34 I have set it to <literal>/home/bos/lib/python</literal>. The | |
35 exact path that you will need to use depends on how Python was | |
36 built for your system, but should be easy to figure out. If | |
37 you're uncertain, look through the output of the installer | |
38 script above, and see where the contents of the | |
39 <literal>mercurial</literal> directory were installed to.</para> | |
40 | |
41 </sect1> | |
42 <sect1> | |
43 <title>On Windows</title> | |
44 | |
45 <para>Building and installing Mercurial on Windows requires a | |
46 variety of tools, a fair amount of technical knowledge, and | |
47 considerable patience. I very much <emphasis>do not | |
48 recommend</emphasis> this route if you are a <quote>casual | |
49 user</quote>. Unless you intend to hack on Mercurial, I | |
50 strongly suggest that you use a binary package instead.</para> | |
51 | |
52 <para>If you are intent on building Mercurial from source on | |
53 Windows, follow the <quote>hard way</quote> directions on the | |
54 Mercurial wiki at <ulink | |
55 url="http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall">http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall</ulink>, | |
56 and expect the process to involve a lot of fiddly work.</para> | |
57 | |
58 </sect1> | |
59 </appendix> | |
60 | |
61 <!-- | |
62 local variables: | |
63 sgml-parent-document: ("00book.xml" "book" "appendix") | |
64 end: | |
65 --> |