0. 準備
mkdir -p src/ptexlive/texlive
mkdir -p src/ptexlive/texlive2009-20091107/source
1. texlive 2010 のインストール
cd src/ptexlive/texlive
ftp ftp://ftp.kddlabs.co.jp/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
tar zxvf install-tl-unx.tar.gz
cd install-tl-20100512
sudo ./install-tl -repository http://ftp.kddlabs.co.jp/CTAN/systems/texlive/tlnet
Enter command: i
Installing to: /usr/local/texlive/2010
Installing [0001/2186, time/total: ??:??/??:??]: 12many [376k]
Installing [0002/2186, time/total: 00:01/54:50]: 2up [66k]
…
Installing [2186/2186, time/total: 15:40/15:40]: zwpagelayout [546k]
Time used for installing the packages: 15:41
…
Welcome to TeX Live!There were some warnings during the installation process.
Here is a summary of warning messages:
Partial download of http://ftp.kddlabs.co.jp/CTAN/systems/texlive/tlnet/archive/slantsc.doc.tar.xz found, removing it.Logfile: /usr/local/texlive/2010/install-tl.log
エラーが出たので一度 install-tl をやり直した。
2. ptexlive のインストール用の texlive ソースを準備
cd ~/src/ptexlive/texlive2009-20091107/source
ftp ftp://tug.org/historic/systems/texlive/2009/texlive-20091107-source.tar.xz
ftp ftp://ftp.kddlabs.co.jp/CTAN/support/ghostscript/GPL/gs871/ghostscript-8.71.tar.xz
cd ..
echo texlive-20091107 > release-texlive.txt
3. ptexlive のダウンロードとカスタマイズ
cd ~/src/ptexlive
ftp http://tutimura.ath.cx/~nob/tex/ptexlive/ptexlive-20100711.tar.gz
tar zxf ptexlive-20100711.tar.gz
cd ptexlive-20100711
emacs common.sh
292,293c292,293
< echo ${SRC_TAR:=$ISO_DIR/source/texlive-20091011-source.tar.xz} > /dev/null
< SRC=${TEXSRC_EXTRACTED:-$TMP_PREFIX/texlive-20091011-source}
—
> echo ${SRC_TAR:=$ISO_DIR/source/texlive-20091107-source.tar.xz} > /dev/null
> SRC=${TEXSRC_EXTRACTED:-$TMP_PREFIX/texlive-20091107-source}
emacs 4extract-texmf.sh
49c49
< eightbit2hex $TEXMF tex/latex/ltxmisc url.sty
—
> eightbit2hex $TEXMF tex/latex/url url.sty
emacs 7font-search.sh
299,300c299,300
< tarx $ISO_DIR/source/ghostscript-8.64.tar.xz $PTEXLIVE_TMP
< cmapinstall $PTEXLIVE_TMP/ghostscript-8.64/Resource/CMap
—
> tarx $ISO_DIR/source/ghostscript-8.71.tar.xz $PTEXLIVE_TMP
> cmapinstall $PTEXLIVE_TMP/ghostscript-8.71/Resource/CMap
emacs 8test.sh
225c225
< if ! $BIN/pdflatex xpdf.tex 2>&1 | grep “recursive calls” > /dev/null; then
—
> if ! $BIN/pdflatex xpdf.tex 2>&1 | grep “Loop in Pages tree” > /dev/null; then
emacs md5sum/texmf
8c8
< e3a9cf32ee9b853b42be14c2f25b873c ./ptex/latex/ltxmisc/url.sty
—
> e3a9cf32ee9b853b42be14c2f25b873c ./ptex/latex/url/url.sty
cd ~/src/ptexlive
cp ptexlive-20100711/ptexlive.sample ptexlive.cfg
emacs ptexlive.cfg
14c14
< ISO_DIR=/Users/uep/src/ptexlive/texlive2009-20091107
—
> ISO_DIR=/media/TeXLive2009
19c19
< TEXLIVE_DIR=/usr/local/texlive/2010
—
> # TEXLIVE_DIR=/usr/local/texlive/2009
39,40c39,40
< # make_option -j 2 # for single core
< make_option -j 3 # for 2 core
—
> make_option -j 2 # for single core
> # make_option -j 3 # for 2 core
135,138c135,138
< CPPFLAGS="-I/usr/local/include -I/opt/local/include -D_XOPEN_SOURCE"
< LDFLAGS="-L/usr/local/lib -L/opt/local/lib"
< LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/opt/local/lib
< export LDFLAGS CPPFLAGS LD_LIBRARY_PATH
—
> # CPPFLAGS=”-I/usr/local/include -I/usr/sfw/include -I/opt/sfw/include -I/usr/openwin/include”
> # LDFLAGS=”-L/usr/local/lib -L/usr/sfw/lib -L/opt/sfw/lib -L/usr/openwin/lib”
> # LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/sfw/lib:/opt/sfw/lib:/usr/openwin/lib
> # export LDFLAGS CPPFLAGS LD_LIBRARY_PATH
4. ptexlive のコンパイル & インストール
cd ~/src/ptexlive/ptexlive-20100711
make
sudo make install
この後、$PATHの設定を.bash_profileなどで行う必要がある。emacs からタイプセットしたい人は .emacs をカスタマイズしておくと幸せになれるでしょう。
(setq exec-path (cons “/usr/local/texlive/p2009/bin/x86_64-apple-darwin10.6.0:” exec-path))
(setq exec-path (cons “/usr/local/bin” exec-path))
(setenv “PATH” (concat ‘”/usr/local/texlive/p2009/bin/x86_64-apple-darwin10.6.0:” (getenv “PATH”)))
コメントを残す