Scientific Linux/ptexlive
最近では Tex Live の日本語対応が進んでいるため、これをインストールすれば platex コマンド (日本語 TeX のコンパイラ) などがインストールされる。下記のページに Tex Live 2013 のインストール方法を書いた。
以下の内容は参考までに残しておく。
ptexlive Wiki を参考に ptexlive (ptexlive-20100711.tar.gz) を Scientific Linux 6.1 にインストール。最近のバージョンなら、大した違いはないかも?インストール方法は README を見る。ptexlive-20100711.tar.gz をインストールするには、texlive2009-20091107.iso.xz イメージからインストールした texlive 2009 が必要。
Tex Live 2010 の uninstall
- 最初、TeX Live 2010 をインストールしてしまった。これだと後の ptexlive の make が通らないので、アンインストールする。
# /usr/local/texlive/2010/bin/i386-linux/tlmgr uninstall
ptexlive make 時のエラー
ヘッダファイルがない
$ make ... checking for Xaw headers... no configure: error: Sorry, you will need at least the Xaw header/library files to compile xdvik. gmake[4]: *** [subtexk] Error 1 gmake[4]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work' real 6m4.144s user 3m18.772s sys 0m35.126s + echo 2 find: `/var/tmp/ptexlive2009/texlive-20091011-source/inst/bin': No such file or directory ./Build: Build failed, no executables under /var/tmp/ptexlive2009/texlive-20091011-source/inst/bin. done Wed Oct 10 19:14:31 JST 2012 make[1]: *** [stage3] エラー 2 make[1]: ディレクトリ `/home/koba/app/ptexlive/ptexlive-20100711' から出ます Those messages are stored in 'log-1010-1907'. make: *** [all0] エラー 1
- # yum install libXaw-devel を実行すれば良い。
フォントのエラー
$ make ... `which bash` ./7font-search.sh yes ------------------------------------------------------------------------ [reading] ../ptexlive.cfg [/usr/share/ghostscript/8.70/Resource/CMap] 78-EUC-H CNS03-RKSJ-H KSCms-UHC-HW-V ... CNS02-RKSJ-H KSCms-UHC-HW-H exec 'ln -sf "/usr/share/ghostscript/8.70/Resource/CMap" "/var/tmp/ptexlive2009/texlive-20091011-source/inst/texmf/fonts/cmap/ghostscript"' ? (yes/No) searching pxdvi fonts... Fontconfig enabled. 'fc-match Ryumin' = VL-Gothic-Regular.ttf: "VL Gothic" "regular" 'fc-match GothicBBB' = VL-Gothic-Regular.ttf: "VL Gothic" "regular" 'fc-match serif' = VL-Gothic-Regular.ttf: "VL Gothic" "regular" 'fc-match sans-serif' = VL-Gothic-Regular.ttf: "VL Gothic" "regular" Ignoring fontconfig setting. ./7font-search.sh: No font was found as Ryumin-Light. make: *** [stage7y] エラー 1
- # yum install ipa-pgothic-fonts ipa-gothic-fonts ipa-pmincho-fonts ipa-mincho-fonts を実行し、フォントをインストール。
test のエラー
----------------------------- [platex yoko] test ----------------------------- [platex tate] test ----------------------------- [UTF package] test ----------------------------- [-dNOKANJI] test ----------------------------- [CVE-2007-0104] test CVE-2007-0104 is not fixed. make: *** [stage8] エラー 1
動作報告99 にあるとおり、8test.shの225行目を以下のように変更。
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
xzdec コマンドがない時のエラー
[extracting] /home/koba/app/texlive_mount_point/source/texlive-20091011-source.tar.xz -> /var/tmp/ptexlive2009 ./common.sh: line 103: xzdec: command not found tar: これは tar アーカイブではないようです tar: 処理中にエラーが起きましたが、最後まで処理してからエラー終了させました make[1]: *** [stage2] エラー 1 make[1]: ディレクトリ `/home/koba/app/ptexlive/ptexlive-20100711' から出ます Those messages are stored in 'log-0131-0535'. make: *** [all0] エラー 1
iso.xz の読み取り - .xz の展開 を参考に xzdec コマンドを使えるようにする。具体的には、/texlive/xz から、xzdec.i386-linux をダウンロードしてきて、xzdec に名前を変更し、PATH の通っているディレクトリに置く。または、適当なディレクトリに置き、PATH を通す。PATH の通し方は web で調べる。
コマンド
NOTE : 日本語 の dvi ファイルを見るには pxdvi を使う。同様に、日本語 dvi -> 日本語 ps の変換は、pdvips を使う。日本語 dvi -> 日本語 pdf の変換は dvipdfmx を使う。
- platex hoge.tex
- pxdvi hoge.dvi
- pdvips hoge.dvi
- dvipdfmx hoge.dvi