
foozy@708: \chapter{Installing Mercurial from source}
foozy@708: \label{chap:srcinstall}
foozy@708: 
foozy@708: \section{On a Unix-like system}
foozy@708: \label{sec:srcinstall:unixlike}
foozy@708: 
foozy@708: $B!J(B2.3 $B$J$$$7$=$l0J8e$N!K?7$7$$HG$N(B Python $B$,MxMQ2DG=$J(B
foozy@708: Unix $BE*$J%7%9%F%`$rMxMQ$7$F$$$k>l9g$O!"(B
foozy@708: Mercurial $B$r%=!<%9%U%!%$%k$+$i%$%s%9%H!<%k$9$k$N$O4JC1$G$9!#(B
foozy@708: 
foozy@708: \begin{enumerate}
foozy@708: \item $B:G?7HG$N(B tar $B%"!<%+%$%V!J(Btarball$B!K$r(B
foozy@708:   \url{http://www.selenic.com/mercurial/download}
foozy@708:   $B$+$i%@%&%s%m!<%I!#(B
foozy@708: 
foozy@708: \item tar $B%"!<%+%$%V$rE83+(B:
foozy@708:   \begin{codesample4}
foozy@708:     gzip -dc mercurial-\emph{version}.tar.gz | tar xf -
foozy@708:   \end{codesample4}
foozy@708: 
foozy@708: \item $B%=!<%9%G%#%l%/%H%j$K0\F0$7$F!"%$%s%9%H!<%kMQ%9%/%j%W%H$r<B9T!#(B
foozy@708:   $B0J2<$N<j=g$O!"(B
foozy@708:   $B%S%k%I$7$?(B Mercurial $B$r%[!<%`%G%#%l%/%H%jG[2<$K%$%s%9%H!<%k$7$^$9!#(B
foozy@708: 
foozy@708:   \begin{codesample4}
foozy@708:     cd mercurial-\emph{version}
foozy@708:     python setup.py install --force --home=\$HOME
foozy@708:   \end{codesample4}
foozy@708: 
foozy@708: \end{enumerate}
foozy@708: 
foozy@708: $B%$%s%9%H!<%k$,40N;$7$?$J$i!"(B
foozy@708: $B%[!<%`%G%#%l%/%H%jD>2<$N(B
foozy@708: \texttt{bin} $B%G%#%l%/%H%j$K(B
foozy@708: Mercurial $B$,%$%s%9%H!<%k$5$l$^$9!#(B
foozy@708: $B%7%'%k$N%3%^%s%I8!:w%Q%9$X$N(B
foozy@708: \texttt{bin} $B%G%#%l%/%H%j$NDI2C$rK:$l$J$$$h$&$K$7$F$/$@$5$$!#(B
foozy@708: 
foozy@708: Mercurial $B$N<B9T$KI,MW$J(B Mercurial $B%Q%C%1!<%8$rC5$7=P$;$k$h$&$K!"(B
foozy@708: \envar{PYTHONPATH} $B4D6-JQ?t$N@_Dj$bI,MW$H$J$k$G$7$g$&!#(B
foozy@708: $BNc$($PCx<T$N%i%C%W%H%C%W$G$O!"(B
foozy@708: \envar{PYTHONPATH} $B4D6-JQ?t$K(B
foozy@708: \texttt{/home/bos/lib/python}
foozy@708: $B$r@_Dj$7$F$$$^$9!#(B
foozy@708: $B<B:]$K(B \envar{PYTHONPATH} $B4D6-JQ?t$K@_Dj$9$kCM$O!"(B
foozy@708: $B3F<+$N4D6-$G(B Python $B$,$I$N$h$&$K@_Dj$5$l$F$$$k$+$K0MB8$7$^$9$,!"(B
foozy@708: $B@_Dj$9$Y$-CM$rF@$k$N$O4JC1$G$9!#(B
foozy@708: $B@_DjCM$K3N?.$,;}$F$J$$>l9g!"(B
foozy@708: $B>e5-$N%$%s%9%H!<%kMQ%9%/%j%W%H$N=PNO$r8+$F!"(B
foozy@708: \texttt{mercurial} 
foozy@708: $B%G%#%l%/%H%j$NFbMF$,%$%s%9%H!<%k$5$l$k@h$r3NG'$7$F$/$@$5$$!#(B
foozy@708: 
foozy@708: \section{On Windows}
foozy@708: 
foozy@708: Windows $B>e$G(B Mercurial $B$r%=!<%9$+$i%S%k%I$9$k$K$O!"(B
foozy@708: $BMM!9$J%D!<%k!"AjEv$J5;=QE*CN<1$K2C$($F!"(B
foozy@708: $B>/$J$+$i$LG&BQ$,MW5a$5$l$^$9!#(B
foozy@708: ``$B5$7Z$K;H$C$F$_$?$$(B''$B>l9g$K$O!"(B
foozy@708: $B%=!<%9$+$i$N%S%k%I$O(B\emph{$BA4$/$*A&$a$G$-$^$;$s(B}$B!#(B
foozy@708: Mercurial $B$=$N$b$N$r%O%C%/$9$k$N$GL5$$8B$j!"(B
foozy@708: $B%P%$%J%jHG$NMxMQ$r$*A&$a$7$^$9(B\footnote{$BLuCm(B:
foozy@708: $B$I$&$7$F$b:G?7$N(B Mercurial $B%=!<%9$rMxMQ$7$?$$>l9g!"(B
foozy@708: Windows $B%M%$%F%#%V$J?6$kIq$$$O4|BT$G$-$^$;$s$,!"(B
foozy@708: Cygwin $B>e$G(B Mercurial $B$r%S%k%I$9$k$H$$$&<j$b$"$j$^$9!#(B}$B!#(B
foozy@708: 
foozy@708: Windows $B>e$G(B Mercurial $B$r%=!<%9$+$i%S%k%I$9$k>l9g!"(B
foozy@708: $BB?$/$NLq2p;v$,5/$-$k$3$H$r3P8g$7$?>e$G!"(B
foozy@708: Mercurial $B$N(B Wiki $B>e$K$"$k(B
foozy@708: \url{http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall}
foozy@708: $B$K<($5$l$F$$$k(B``$B6lFq$NF;(B''$B$rC)$C$F$/$@$5$$!#(B
foozy@708: 
foozy@708: %%% Local Variables: 
foozy@708: %%% mode: latex
foozy@708: %%% TeX-master: "00book"
foozy@708: %%% End: 




