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