研究日誌。

大規模なグラフ処理に対してメモリ階層構造を考慮した高性能なソフトウェアを開発。

MacOSX snow leopard - TeX Live + ptexlive。

2010-02-02 16:39:32 | Weblog
0. mac ports を install

1. 必要なパッケージを揃える
$ sudo port install lzma
$ sudo port install lzmautils
$ sudo port install freetype
$ sudo port install nkf
$ sudo port install ghostscript

2. ISO image の download
$ wget http://www.t.ring.gr.jp/pub/text/CTAN/systems/texlive/Images/texlive2008-20080822.iso.lzma
$ lzmadec <texlive2008-20080822.iso.lzma > texlive2008-20080822.iso

3. TeX
$ chmod a+w /usr/local
$ mkdir /usr/ptexlive/
$ cd /usr/ptexlive/
$ wget http://tutimura.ath.cx/~nob/tex/ptexlive/ptexlive-20091009.tar.gz
$ tar zxvf ptexlive20091009.tar.gz
$ cp ptexlive20091009/ptexlive.sample ptexlive.cfg
$ vi ptexlive.cfg  # 編集する
# ISO_DIR=/media/TeXLive2008
  ISO_DIR=/Volumes/TeXLive2008
# ISO_DIR=/mnt/cdrom

if freetype-config --ftversion > /dev/null 2>&1; then
conf_option --with-system-freetype2
conf_option --with-freetype2-include=‘freetype-config --cflags 
 | sed -e ’s/-I//’ -e ’s/ .*//’‘
fi

conf_option --without-musixflx

XDVI=echo

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

$ cd ptexlive20091009
$ make
$ sudo make install
$ make distclean