ptexlive のバックアップソース(No.3) - アールメカブ

アールメカブ


ptexlive のバックアップソース(No.3)

[[Texの備忘録]]

ptexLive のインストール

* TeX Live 2009 のインストール [#y914a47d]
- ダウンロード
http://www.t.ring.gr.jp/pub/text/CTAN/systems/texlive/Images/ から texlive2009-****.iso.xz
- 展開とマウント
 $ unxz exlive2009-****.iso.xz
 $ sudo mkdir /mnt/texlive2009
 $ sudo mount -o loop ./texlive2009-20091107.iso /mnt/texlive2009
 $ cd /mnt/texlive2009
- インストール
 $ sudo ./install-tl

* ptexLive のインストール [#afeeff3d]
- ダウンロード
http://www.t.ring.gr.jp/pub/text/CTAN/systems/texlive/Images/ から texlive2009-20****tar.gz 
- 展開とマウント
 $ gzip -cd ptexlive-20****.tar.gz | tar xvf -
 $ cd ptexlive-20****
 $ cp ptexlive.sample ../ptexlive.cfg
 $ vi ../ptexlive.cfg 
 ...
 ISO_DIR=/mnt/texlive2009
 ...
 export CONFIG_SHELL=$BASH
 ...
 conf_option --with-xdvi-x-toolkit=motif
 ...
 $ make all3
 [-dNOKANJI] test
 Warning: 'gs' seem to embed Japanese fonts in spite of '- 
  dNOKANJI' option.
 Check gs options in
  /var/tmp/ptexlive2009/texlive-20091011-  source/inst/texmf/dvipdfmx/dvipdfmx.cfg.
 We may need some additional patches for ghostscript.
 -----------------------------
 [CVE-2007-0104] test
 CVE-2007-0104 is not fixed.
 make: *** [stage8] エラー 1
 $ sudo make install
 $ make distclean 

 $ sudo vi /usr/local/texlive/p2009/texmf/xdvi/pxdvi.cfg 

 % Japanese
 %replace Ryumin-Light            ipam.ttf
 %replace GothicBBB-Medium        ipag.ttf

となっていたら

 % Japanese
 replace Ryumin-Light            /usr/share/fonts/opentype/ipafont/ipam.ttf
 replace GothicBBB-Medium        /usr/share/fonts/opentype/ipafont/ipag.ttf

と修正

なおコマンドは
 platex
 pxdvi-motif
 pdvips
になる

-----
2010 03 01

基本的には[[土村さんのサイトからダウンロードした一式:http://tutimura.ath.cx/ptexlive/]]のREADMEの通りにするだけだが,
Ubuntu の場合 sh が dash へのシンボリックリンクなので,
bash に張り替えてやる必要がある.

 $ sudo dpkg-reconfigure dash

を実行して Install dash as /bin/sh? に<いいえ>を選択.元に戻すには再度実行し<はい>
//http://gihyo.jp/admin/serial/01/ubuntu-recipe/0018?page=2

あるいは強引に
 $ cd /bin
 $ sudo rm sh
 $ sudo ln -s bash sh
念のため元に戻すには
 $ sudo -i
 $ sudo rm sh
 $ sudo ln -s dash sh


さもなければ以下のようなエラーに見舞われる

 texlive-source/Work/texk/kpathsea/libkpathsea.la -lm
 eval: 1: libtool_args+=: not found
 eval: 1: compile_command+=: not found