Mercurial > hgbook
annotate ja/srcinstall.tex @ 802:de4142983445
Propagate 3b640272a966
Progres on resolve
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 21 Jun 2009 09:20:47 +0900 |
parents | 57fb4684b8e3 |
children | 8a3041e6f3cb |
rev | line source |
---|---|
336 | 1 %\chapter{Installing Mercurial from source} |
2 \chapter{$B%=!<%9$+$i(BMercurial$B$r%$%s%9%H!<%k$9$k(B} | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
3 \label{chap:srcinstall} |
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
4 |
336 | 5 %\section{On a Unix-like system} |
6 \section{Unix$B7O%7%9%F%`$G$N%$%s%9%H!<%k(B} | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
7 \label{sec:srcinstall:unixlike} |
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
8 |
336 | 9 %If you are using a Unix-like system that has a sufficiently recent |
10 %version of Python (2.3~or newer) available, it is easy to install | |
11 %Mercurial from source. | |
12 %\begin{enumerate} | |
13 %\item Download a recent source tarball from | |
14 % \url{http://www.selenic.com/mercurial/download}. | |
15 %\item Unpack the tarball: | |
16 % \begin{codesample4} | |
17 % gzip -dc mercurial-\emph{version}.tar.gz | tar xf - | |
18 % \end{codesample4} | |
19 %\item Go into the source directory and run the installer script. This | |
20 % will build Mercurial and install it in your home directory. | |
21 % \begin{codesample4} | |
22 % cd mercurial-\emph{version} | |
23 % python setup.py install --force --home=\$HOME | |
24 % \end{codesample4} | |
25 %\end{enumerate} | |
26 %Once the install finishes, Mercurial will be in the \texttt{bin} | |
27 %subdirectory of your home directory. Don't forget to make sure that | |
28 %this directory is present in your shell's search path. | |
29 | |
30 Python (2.3~$B0\9T(B)$B$N%$%s%9%H!<%k$5$l$F$$$k!$==J,?7$7$$(BUnix$B7O$N%7%9%F%`$G(B | |
31 $B$O!$(BMercurial$B$N%=!<%9$+$i$N%$%s%9%H!<%k$O4JC1$G$"$k!%(B | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
32 \begin{enumerate} |
336 | 33 \item \url{http://www.selenic.com/mercurial/download}$B$+$i?7$7$$%=!<%9$N(B |
34 tarball$B$r%@%&%s%m!<%I$9$k(B | |
35 \item tarball$B$r2rE`$9$k(B: | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
36 \begin{codesample4} |
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
37 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
|
38 \end{codesample4} |
336 | 39 \item $B%=!<%9%G%#%l%/%H%j$KF~$C$F!$%$%s%9%H!<%i%9%/%j%W%H$r<B9T$9$k!%(B |
40 Mercurial$B$,%S%k%I$5$l!$%f!<%6%[!<%`%G%#%l%/%H%j$K%$%s%9%H!<%k$5$l(B | |
41 $B$k!%(B | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
42 \begin{codesample4} |
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
43 cd mercurial-\emph{version} |
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
44 python setup.py install --force --home=\$HOME |
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
45 \end{codesample4} |
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
46 \end{enumerate} |
336 | 47 $B%$%s%9%H!<%k$r9T$J$&$H!$(BMercurial$B$O%f!<%6%[!<%`%G%#%l%/%H%jFb$N(B |
48 \texttt{bin}$B%5%V%G%#%l%/%H%j$K<}$a$i$l$k!%$3$N%G%#%l%/%H%j$,%7%'%k$N%3%^(B | |
49 $B%s%I%5!<%A%Q%9$K$"$k$N$r3NG'$9$k$3$H!%(B | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
50 |
336 | 51 %You will probably need to set the \envar{PYTHONPATH} environment |
52 %variable so that the Mercurial executable can find the rest of the | |
53 %Mercurial packages. For example, on my laptop, I have set it to | |
54 %\texttt{/home/bos/lib/python}. The exact path that you will need to | |
55 %use depends on how Python was built for your system, but should be | |
56 %easy to figure out. If you're uncertain, look through the output of | |
57 %the installer script above, and see where the contents of the | |
58 %\texttt{mercurial} directory were installed to. | |
59 | |
60 Mercurial$B$N<B9T%U%!%$%k$,B>$N(BMercurial$B%Q%C%1!<%8$rH/8+$G$-$k$h$&$K!$$*$=(B | |
61 $B$i$/4D6-JQ?t(B\envar{PYTHONPATH}$B$r@_Dj$9$k$3$H$,I,MW$K$J$k!%Nc$($P!$I.<T$N(B | |
62 $B%i%C%W%H%C%W$G$O$3$l$r(B\texttt{/home/bos/lib/python}$B$K@_Dj$7$F$$$k!%(B | |
63 $B<B:]$N@5$7$$%Q%9$O$I$N$h$&$K(BPython$B$r%S%k%I$7$?$+$K$h$k$,!$$3$l$r8+$D$1=P(B | |
64 $B$9$N$O4JC1$JH&$@!%$b$7ITL@$G$"$l$P!$A0=R$N%$%s%9%H!<%i%9%/%j%W%H$N=PNO$+(B | |
65 $B$i!$(B\texttt{mercurial}$B%G%#%l%/%H%j$NCf?H$,$I$3$K%$%s%9%H!<%k$5$l$?$+$r8+(B | |
66 $B$l$PNI$$!%(B | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
67 |
336 | 68 %\section{On Windows} |
69 \section{Windows$B$G$N%$%s%9%H!<%k(B} | |
70 | |
71 %Building and installing Mercurial on Windows requires a variety of | |
72 %tools, a fair amount of technical knowledge, and considerable | |
73 %patience. I very much \emph{do not recommend} this route if you are a | |
74 %``casual user''. Unless you intend to hack on Mercurial, I strongly | |
75 %suggest that you use a binary package instead. | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
76 |
336 | 77 Mercurial$B$r(BWindows$B>e$G%=!<%9$+$i%S%k%I$7%$%s%9%H!<%k$9$k$?$a$K$O!$B?$/$N(B |
78 $B%D!<%k$,I,MW$G!$$=$l$J$j$N5;=QE*CN<1$,I,MW$G$"$j!$:$Fq$G$"$k!%$b$7%+%8%e(B | |
79 $B%"%k$J%f!<%6$G$"$l$P!$$3$N$d$jJ}$O$*$9$9$a$7$J$$!%(BMercurial$B<+BN$r%O%C%/$7(B | |
80 $B$?$$$N$G$J$1$l$P!$%P%$%J%j%Q%C%1!<%8$r$*$9$9$a$9$k!%(B | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
81 |
336 | 82 %If you are intent on building Mercurial from source on Windows, follow |
83 %the ``hard way'' directions on the Mercurial wiki at | |
84 %\url{http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall}, | |
85 %and expect the process to involve a lot of fiddly work. | |
86 | |
87 $B$b$7(BMercurial$B$r(BWindows$B>e$G%=!<%9$+$i%S%k%I$7$?$$$N$G$"$l$P!$(BMercurial | |
88 wiki | |
89 \url{http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall} $B$N(B | |
90 ``hard way''$B$N@bL@$K=>$C$F9T$J$&!%$3$NJ}K!$G$OB?$/$NLLE]$J:n6H$,BT$A9=$((B | |
91 $B$F$$$k$3$H$r3P8g$9$kI,MW$,$"$k!%(B | |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
92 |
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
93 %%% Local Variables: |
293
3b1291f24c0d
- replaved latex-mode to yatex-mode
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
290
diff
changeset
|
94 %%% mode: yatex |
85
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
95 %%% TeX-master: "00book" |
b7c69a68b0cc
A little progress on "lightning tour".
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
96 %%% End: |