annotate en/srcinstall.tex @ 362:df4ac9043db0

a bit more template.tex
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 23 Sep 2008 02:21:24 +0900
parents b7c69a68b0cc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
85
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
1 \chapter{Installing Mercurial from source}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
2 \label{chap:srcinstall}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
3
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
4 \section{On a Unix-like system}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
5 \label{sec:srcinstall:unixlike}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
6
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
7 If you are using a Unix-like system that has a sufficiently recent
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
8 version of Python (2.3~or newer) available, it is easy to install
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
9 Mercurial from source.
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
10 \begin{enumerate}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
11 \item Download a recent source tarball from
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
12 \url{http://www.selenic.com/mercurial/download}.
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
13 \item Unpack the tarball:
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
14 \begin{codesample4}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
15 gzip -dc mercurial-\emph{version}.tar.gz | tar xf -
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
16 \end{codesample4}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
17 \item Go into the source directory and run the installer script. This
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
18 will build Mercurial and install it in your home directory.
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
19 \begin{codesample4}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
20 cd mercurial-\emph{version}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
21 python setup.py install --force --home=\$HOME
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
22 \end{codesample4}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
23 \end{enumerate}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
24 Once the install finishes, Mercurial will be in the \texttt{bin}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
25 subdirectory of your home directory. Don't forget to make sure that
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
26 this directory is present in your shell's search path.
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
27
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
28 You will probably need to set the \envar{PYTHONPATH} environment
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
29 variable so that the Mercurial executable can find the rest of the
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
30 Mercurial packages. For example, on my laptop, I have set it to
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
31 \texttt{/home/bos/lib/python}. The exact path that you will need to
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
32 use depends on how Python was built for your system, but should be
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
33 easy to figure out. If you're uncertain, look through the output of
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
34 the installer script above, and see where the contents of the
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
35 \texttt{mercurial} directory were installed to.
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
36
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
37 \section{On Windows}
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
38
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
39 Building and installing Mercurial on Windows requires a variety of
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
40 tools, a fair amount of technical knowledge, and considerable
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
41 patience. I very much \emph{do not recommend} this route if you are a
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
42 ``casual user''. Unless you intend to hack on Mercurial, I strongly
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
43 suggest that you use a binary package instead.
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
44
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
45 If you are intent on building Mercurial from source on Windows, follow
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
46 the ``hard way'' directions on the Mercurial wiki at
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
47 \url{http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall},
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
48 and expect the process to involve a lot of fiddly work.
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
49
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
50 %%% Local Variables:
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
51 %%% mode: latex
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
52 %%% TeX-master: "00book"
b7c69a68b0cc A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
53 %%% End: