MacOS X 10.7 (Lion) ソフトウエア導入記録

10.1 へのインストール記録はこちら
10.2 へのインストール記録はこちら
10.3 へのインストール記録はこちら
10.4 へのインストール記録はこちら
10.5 へのインストール記録はこちら
10.6 へのインストール記録はこちら

Xcode をインストール

MacAppストアでダウンロード
Xcodeを起動後,メニュー「Xcode」→「Prefernces...」
「Downloads」タブを選び,Command Line Tools を install

Java for Mac OS X 10.7

インストール後,再起動しないと Safari で Applet が走らなかった。

homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
brew install git
brew update

Cocoa Emacs

brew install --cocoa --use-llvm emacs
ln -s /usr/local/Cellar/emacs/23.4/Emacs.app /Applications

aspell

brew install --lang=en,uk aspell

MacTeX-2011

インストールする際,ghostscript, Image-Magick は除く。
アップデート。
sudo tlmgr update --self --all
sudo tlmgr --repository http://www.tug.org/~preining/tlptexlive/ update --all
sudo tlmgr --repository http://www.tug.org/~preining/tlptexlive/ install pmetapost pxdvi uptex
latex2html実行時に,dvipsがTgifで描いた図を処理するとき,Ryumin-Light-EUC-H などが見つからないというエラーが出る。よくわからないが,とりあえず, /usr/local/texlive/2011/texmf-dist/fonts/map/dvipdfmx/japanese-otf/otf-noEmbed.map の最後に,以下を追加し,
Ryumin-Light-EUC-H EUC-H !Ryumin-Light
Ryumin-Light-EUC-V EUC-V !Ryumin-Light
GothicBBB-Medium-EUC-H EUC-H !GothicBBB-Medium
GothicBBB-Medium-EUC-V EUC-V !GothicBBB-Medium
updmap-sys を実行。
sudo updmap-sys

Ghostscript 9.02

熊本学園大の小川先生のGPL Ghostscript 9.02 (Lion/Snow Leopard 専用)をインストール。 ここで,Ryumin-Light などのフォントでエラーが出た。 あちこち調べて,/usr/local/share/ghostscript/9.02/Resource/Font に 以下のファイルを追加

Ryumin-Light-H
/Ryumin-Light-H
/H /CMap findresource
[/HiraMinProN-W3 /CIDFont findresource]
composefont pop
Ryumin-Light-V
/Ryumin-Light-V
/V /CMap findresource
[/HiraMinProN-W3 /CIDFont findresource]
composefont pop
Ryumin-Light-EUC-H
/Ryumin-Light-EUC-H
/EUC-H /CMap findresource
[/HiraMinProN-W3 /CIDFont findresource]
composefont pop
GothicBBB-Medium-H
/GothicBBB-Medium-H
/H /CMap findresource
[/HiraKakuProN-W3 /CIDFont findresource]
composefont pop
同様に,Ryumin-Light-EUC-V, GothicBBB-Medium-V,GothicBBB-Medium-EUC-H,GothicBBB-Medium-EUC-Vも作成。

その他

一度,homebrew で Ghostscript を install し,後で uninstall した関係で, 以下のライブラリが入っていた。
jpeg
libtiff
pkg-config

auxtex

brew install --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs auctex

mew-6.4

./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
make
sudo make install
.emacs を編集し,exec-path に /usr/local/bin を追加。
(setq exec-path (cons "/usr/local/bin" exec-path))

tgif-QPL-4.2.5

gzcat ../tgif-QPL-4.2-patch5a.gz | patch -p0
gzcat ../tgif-QPL-4.2-patch5b.gz | patch -p0
./configure
make
sudo make install
sudo mkdir  /usr/local/lib/X11/app-defaults
sudo cp /usr/local/lib/X11/tgif/tgif.Xdefaults /usr/local/lib/X11/app-defaults/Tgif
sudo vi /usr/local/lib/X11/app-defaults/Tgif
  L382-401, 427, 429 をコメントアウト
日本語を使いたいときは, env XAPPLRESDIR=/usr/local/lib/X11/app-defaults tgif と起動する。(そのばしのぎ…)

オーナーの修正

Tgif のインストールで,root を使ってしまったので, homebrew 用に修正しておく。
sudo chown -R <user> /usr/local/lib/X11

imake

brew install imake

libXaw3d-1.6.1

いつものように gv を入れたいので,Xaw3d を入れようとしたのだが, Error がでてうまくいかない。検索エンジンのおかげでなんとかなった。
./configure --enable-internationalization --enable-multiplane-bitmaps --enable-gray-stipples --enable-arrow-scrollbars
vi include/X11/Xaw3d/Xaw3dP.h
 L.40 + #define XAW_INTERNATIONALIZATION
      + #define XAW_MULTIPLANE_PIXMAPS
      + #define XAW_GRAY_BLKWHT_STIPPLES
      + #define XAW_ARROW_SCROLLBARS
make
インストールはせず,ライブラリを直接 gv にくっつけることにする。

gv-3.7.3

env LIBRARY_PATH=/usr/X11/lib:<somewhere>/libXaw3d-1.6.1/src ./configure  --enable-SIGCHLD-fallback
vi src/Scrollbar.c
 L.1009 -   (*swclass->threeD_class.shadowdraw) (w, event, region, FALSE);
        +   (*swclass->threeD_class.shadowdraw) (w, event, region, SBW->threeD.relie     f, FALSE);
vi src/Makefile
 L.416 - LIBS = -lXinerama -lXaw3d -lXpm -lXmu -lXt -lXext -lSM -lICE -lX11 -liconv      -lfl -lm
       + LIBS = <somewhere>/libXaw3d-1.6.1/src/.libs/libXaw3d.a -lXinerama -lXpm -lXmu -lXt -lXext -lSM -lICE -lX11 -liconv -lfl -lm

env CPATH=<somewhere>/libXaw3d-1.6.1/include LIBRARY_PATH=/usr/X11/lib:<somewhere>/libXaw3d-1.6.1/src/.libs make
make install

Image Magick

brew install imagemagick

nkf 2.1.2

make
make install

netpbm

brew install netpbm
あとで,latex2htmlを実行したら,pnmtopngがrgb.txtが見つからないというエラーを出していたので,.bash_profile に次の行を追加しておく。
exprot RGBDEF="/usr/X11/share/X11/rgb.txt"

latex2html

日本語化パッチのページから必要なものをもらってくる。
patch -p1 < l2h-2K8-jp2.1b1.13.patch
./configure --prefix=/usr/local --with-kanji=utf8
make
sudo mkdir /usr/local/texlive/2011/texmf/tex/latex/html
sudo chown <user> /usr/local/texlive/2011/texmf/tex/latex/html
make install
sudo mktexlsr

gnuplot

brew install gnuplot --pdf