Mercurial > hgbook
view es/srcinstall.tex @ 536:05bfbe50e7e4
translated a paragraph
author | Javier Rojas <jerojasro@devnull.li> |
---|---|
date | Fri, 05 Dec 2008 22:09:05 -0500 |
parents | b05e35d641e4 |
children | 1b8b19825994 |
line wrap: on
line source
\chapter{Installing Mercurial from source} \label{chap:srcinstall} \section{On a Unix-like system} \label{sec:srcinstall:unixlike} If you are using a Unix-like system that has a sufficiently recent version of Python (2.3~or newer) available, it is easy to install Mercurial from source. \begin{enumerate} \item Download a recent source tarball from \url{http://www.selenic.com/mercurial/download}. \item Unpack the tarball: \begin{codesample4} gzip -dc mercurial-\emph{version}.tar.gz | tar xf - \end{codesample4} \item Go into the source directory and run the installer script. This will build Mercurial and install it in your home directory. \begin{codesample4} cd mercurial-\emph{version} python setup.py install --force --home=\$HOME \end{codesample4} \end{enumerate} Once the install finishes, Mercurial will be in the \texttt{bin} subdirectory of your home directory. Don't forget to make sure that this directory is present in your shell's search path. You will probably need to set the \envar{PYTHONPATH} environment variable so that the Mercurial executable can find the rest of the Mercurial packages. For example, on my laptop, I have set it to \texttt{/home/bos/lib/python}. The exact path that you will need to use depends on how Python was built for your system, but should be easy to figure out. If you're uncertain, look through the output of the installer script above, and see where the contents of the \texttt{mercurial} directory were installed to. \section{On Windows} Building and installing Mercurial on Windows requires a variety of tools, a fair amount of technical knowledge, and considerable patience. I very much \emph{do not recommend} this route if you are a ``casual user''. Unless you intend to hack on Mercurial, I strongly suggest that you use a binary package instead. If you are intent on building Mercurial from source on Windows, follow the ``hard way'' directions on the Mercurial wiki at \url{http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall}, and expect the process to involve a lot of fiddly work. %%% Local Variables: %%% mode: latex %%% TeX-master: "00book" %%% End: