Source

hgbook / ja / srcinstall.tex

\chapter{Installing Mercurial from source}
\label{chap:srcinstall}

\section{On a Unix-like system}
\label{sec:srcinstall:unixlike}

$B!J(B2.3 $B$J$$$7$=$l0J8e$N!K?7$7$$HG$N(B Python $B$,MxMQ2DG=$J(B
Unix $BE*$J%7%9%F%`$rMxMQ$7$F$$$k>l9g$O!"(B
Mercurial $B$r%=!<%9%U%!%$%k$+$i%$%s%9%H!<%k$9$k$N$O4JC1$G$9!#(B

\begin{enumerate}
\item $B:G?7HG$N(B tar $B%"!<%+%$%V!J(Btarball$B!K$r(B
  \url{http://www.selenic.com/mercurial/download}
  $B$+$i%@%&%s%m!<%I!#(B

\item tar $B%"!<%+%$%V$rE83+(B:
  \begin{codesample4}
    gzip -dc mercurial-\emph{version}.tar.gz | tar xf -
  \end{codesample4}

\item $B%=!<%9%G%#%l%/%H%j$K0\F0$7$F!"%$%s%9%H!<%kMQ%9%/%j%W%H$r<B9T!#(B
  $B0J2<$N<j=g$O!"(B
  $B%S%k%I$7$?(B Mercurial $B$r%[!<%`%G%#%l%/%H%jG[2<$K%$%s%9%H!<%k$7$^$9!#(B

  \begin{codesample4}
    cd mercurial-\emph{version}
    python setup.py install --force --home=\$HOME
  \end{codesample4}

\end{enumerate}

$B%$%s%9%H!<%k$,40N;$7$?$J$i!"(B
$B%[!<%`%G%#%l%/%H%jD>2<$N(B
\texttt{bin} $B%G%#%l%/%H%j$K(B
Mercurial $B$,%$%s%9%H!<%k$5$l$^$9!#(B
$B%7%'%k$N%3%^%s%I8!:w%Q%9$X$N(B
\texttt{bin} $B%G%#%l%/%H%j$NDI2C$rK:$l$J$$$h$&$K$7$F$/$@$5$$!#(B

Mercurial $B$N<B9T$KI,MW$J(B Mercurial $B%Q%C%1!<%8$rC5$7=P$;$k$h$&$K!"(B
\envar{PYTHONPATH} $B4D6-JQ?t$N@_Dj$bI,MW$H$J$k$G$7$g$&!#(B
$BNc$($PCx<T$N%i%C%W%H%C%W$G$O!"(B
\envar{PYTHONPATH} $B4D6-JQ?t$K(B
\texttt{/home/bos/lib/python}
$B$r@_Dj$7$F$$$^$9!#(B
$B<B:]$K(B \envar{PYTHONPATH} $B4D6-JQ?t$K@_Dj$9$kCM$O!"(B
$B3F<+$N4D6-$G(B Python $B$,$I$N$h$&$K@_Dj$5$l$F$$$k$+$K0MB8$7$^$9$,!"(B
$B@_Dj$9$Y$-CM$rF@$k$N$O4JC1$G$9!#(B
$B@_DjCM$K3N?.$,;}$F$J$$>l9g!"(B
$B>e5-$N%$%s%9%H!<%kMQ%9%/%j%W%H$N=PNO$r8+$F!"(B
\texttt{mercurial} 
$B%G%#%l%/%H%j$NFbMF$,%$%s%9%H!<%k$5$l$k@h$r3NG'$7$F$/$@$5$$!#(B

\section{On Windows}

Windows $B>e$G(B Mercurial $B$r%=!<%9$+$i%S%k%I$9$k$K$O!"(B
$BMM!9$J%D!<%k!"AjEv$J5;=QE*CN<1$K2C$($F!"(B
$B>/$J$+$i$LG&BQ$,MW5a$5$l$^$9!#(B
``$B5$7Z$K;H$C$F$_$?$$(B''$B>l9g$K$O!"(B
$B%=!<%9$+$i$N%S%k%I$O(B\emph{$BA4$/$*A&$a$G$-$^$;$s(B}$B!#(B
Mercurial $B$=$N$b$N$r%O%C%/$9$k$N$GL5$$8B$j!"(B
$B%P%$%J%jHG$NMxMQ$r$*A&$a$7$^$9(B\footnote{$BLuCm(B:
$B$I$&$7$F$b:G?7$N(B Mercurial $B%=!<%9$rMxMQ$7$?$$>l9g!"(B
Windows $B%M%$%F%#%V$J?6$kIq$$$O4|BT$G$-$^$;$s$,!"(B
Cygwin $B>e$G(B Mercurial $B$r%S%k%I$9$k$H$$$&<j$b$"$j$^$9!#(B}$B!#(B

Windows $B>e$G(B Mercurial $B$r%=!<%9$+$i%S%k%I$9$k>l9g!"(B
$BB?$/$NLq2p;v$,5/$-$k$3$H$r3P8g$7$?>e$G!"(B
Mercurial $B$N(B Wiki $B>e$K$"$k(B
\url{http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall}
$B$K<($5$l$F$$$k(B``$B6lFq$NF;(B''$B$rC)$C$F$/$@$5$$!#(B

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "00book"
%%% End: 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.