Mac OS X インストールログ

注意: 古い情報から順に時系列なので、後の方で再インストールしているパッケージがあります。

環境
OS アップデート (MacOS X 10.2.5)
Developer Tools (December 2002 release)
Carbon Emacs
Emacs Lisp Reference Manual (Japanese)
JTerminal
w3m
emacs-w3m
Wanderlust
navi2ch
monafont
jless (Jam less)
ChaSen
SKK
Apple X11 for MacOS X beta3
Dynamic Macro (dmacro.el)
AquaSKK
LiteSwitch X 1.0.1J
Mew
iPulse 1.0.3
Fink 0.5.2
kterm
canna
kinput2
cannadic
X11 日本語環境
autoconf 2.57
dlcompat
Gauche
GTK+
GIMP
nkf
jman
Safari 1.0 Beta 2 (v72)
OS アップデート (MacOS X 10.2.6)
fileutils
php-mode
Safari Enhancer 2.0
XEmacs
xmahjongg
imlib
w3m (inline image support)
fink selfupdate
Safari 1.0 Beta 2 (v74)
OpenOffice.org 1.0.1.3 Final Beta Release for DarwinPPC
東風フォント
Clutter
Maya 4.5PLE
RollerCoaster
Allegro Common Lisp 6.2 trial
3DOSX
LHa for UNIX
Microsoft IntelliPoint Software for Mac OS X Version 3.1
iTunes 4.0.1
arKaos visualizer 1.5.4
fink selfupdate
DrScheme 204
Audion 3.0.2
Marine Aquarium
ncftp
Quake III Arena X 1.3.2
Carbon Emacs 再インストール
migemo
qkc
cmigemo 1.1
fink selfupdate
PostgreSQL 7.3.3
php 4.1.2
sdic-2.1.3
lookup-1.3
Sary 1.0.4
POBox 1.2.5
fink selfupdate
automake
libtool
find
guile
IE 5.2.3
Emacs Wiki 2.39
RIVEN
fink selfupdate
mode-info
grep-2.4.2-mlb2
code2html 0.9.1
fink selfupdate
aview
DivX 5.0.7
3ivx Delta 4 - 4.0.4
unrar
liece-1.4.10
OS アップデート (MacOS X 10.2.8)
mecab-0.76
Windows Media Player 9 for Mac OS X
jnethack-3.4.2-0.1

環境

Power Book G4 1000/17 M8793J/A +512M (1024M)

OS アップデート (MacOS X 10.2.5)

Install

Doc から [システム環境設定] - [ソフトウェアアップデート] 「MaxOS X アップデート (10.2.5)」を選択

% uname -a
Darwin bar.local. 6.5 Darwin Kernel Version 6.5: Mon Apr  7 17:05:38 PDT 2003;
root:xnu/xnu-344.32.obj~1/RELEASE_PPC  Power Macintosh powerpc

Developer Tools (December 2002 release)

Install

Finder で /Applications/Installers/Developer\ Tools/Developer.mpkg をダブルクリック

Carbon Emacs

URL

Install

% date
Wed Apr 30 14:26:00 JST 2003
% mkdir -p ~/src/emacs-cvs
% cd ~/src/emacs-cvs
% cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/emacs login
% cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/emacs co emacs
% cd emacs
% ./configure --without-x
% make bootstrap
% sudo make install

Finder で mac/Emacs.app を /Applications にコピー

Config

~/.bashrc に
export PATH="/usr/local/bin:$PATH"

Emacs Lisp Reference Manual (Japanese)

URL

Install

% curl -O ftp://ftp.ascii.co.jp/pub/GNU/elisp-manual-20/elisp-manual-20-2.5-jp.tgz
% curl -O http://www.namazu.org/~tsuchiya/doc/elisp-manual-20-2.5-jp.patch.bz2
% tar xfz elisp-manual-20-2.5-jp.tgz
% bunzip2 elisp-manual-20-2.5-jp.patch.bz2
% patch -p0 < elisp-manual-20-2.5-jp.patch
% cd elisp-manual-20-2.5-jp
% ln -s index.unperm index.texi

emacs で C-x C-f elisp.texi RET M-x texinfo-format-buffer RET C-x C-s

% sudo install -c -m 644 elisp-jp* /usr/local/info
% sudo vi /usr/local/info/dir

JTerminal

URL

Install

% curl -O http://www.tt.rim.or.jp/~kusama/JTerminal-1.1.0.tar.gz
% tar xfz JTerminal-1.1.0.tar.gz
% cd JTerminal-1.1.0

Finder で

Config

[環境設定...]-[プログラム]-[プログラム名]-[Default]-[プログラム] を /bin/bash に設定
% ln -s ~/.bashrc ~/.profile

w3m

URL

Install

% curl -O http://heanet.dl.sourceforge.net/sourceforge/w3m/w3m-0.4.1.tar.gz
% tar xfz w3m-0.4.1.tar.gz 
% cd w3m-0.4.1
% ./configure
% make
% sudo make install

emacs-w3m

URL

Install

% curl -O http://emacs-w3m.namazu.org/emacs-w3m-1.3.3.tar.gz
% tar xfz emacs-w3m-1.3.3.tar.gz 
% cd emacs-w3m-1.3.3

mime-w3m.el を以下のように修正

% diff -u0 mime-w3m.el~ mime-w3m.el
--- mime-w3m.el~        Thu Oct 24 12:13:41 2002
+++ mime-w3m.el Thu May  1 20:11:21 2003
@@ -193 +193 @@
-                             (string &optional replace) activate)
+                             (string &optional replace yank-handler) activate)
% ./configure
% make
% sudo make install
% sudo make install-icons

Config

~/.emacs に
;;; add exec-path (for /usr/local/bin/w3m)
(add-to-list 'exec-path "/usr/local/bin")
(setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH")))
(autoload 'w3m "w3m" "Interface for w3m on Emacs." t)
(autoload 'w3m-find-file "w3m" "w3m interface function for local file." t)
(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
(autoload 'w3m-search "w3m-search" "Search QUERY using SEARCH-ENGINE." t)
(autoload 'w3m-weather "w3m-weather" "Display weather report." t)
(autoload 'w3m-antenna "w3m-antenna" "Report change of WEB sites." t)
(require 'mime-w3m)

Wanderlust

URL

Install

% curl -O ftp://ftp.m17n.org/pub/mule/apel/apel-10.4.tar.gz
% curl -O ftp://ftp.m17n.org/pub/mule/flim/flim-1.14/flim-1.14.4.tar.gz
% curl -O ftp://ftp.m17n.org/pub/mule/semi/semi-1.14-for-flim-1.14/semi-1.14.5.tar.gz
% curl -O ftp://ftp.gohome.org/wl/stable/wl-2.10.0.tar.gz
% tar xfz apel-10.4.tar.gz
% cd apel-10.4
% make EMACS=/usr/local/bin/emacs
% sudo make EMACS=/usr/local/bin/emacs install
% cd ..
% tar xfz flim-1.14.4.tar.gz 
% cd flim-1.14.4
% make EMACS=/usr/local/bin/emacs
% sudo make EMACS=/usr/local/bin/emacs install
% cd ..
% tar xfz semi-1.14.5.tar.gz 
% cd semi-1.14.5
% make EMACS=/usr/local/bin/emacs
% sudo make EMACS=/usr/local/bin/emacs install
% cd ..
% tar xfz wl-2.10.0.tar.gz 
% cd wl-2.10.0
% make EMACS=/usr/local/bin/emacs
% sudo make EMACS=/usr/local/bin/emacs install
% make EMACS=/usr/local/bin/emacs info
% sudo make EMACS=/usr/local/bin/emacs install-info
% cd samples/ja
% cp -p dot.wl ~/.wl
% cp -p dot.folders ~/.folders
% cp -p dot.addresses ~/.addresses

Config

~/.emacs に
(autoload 'wl "wl" "Wanderlust" t)
(autoload 'wl-other-frame "wl" "Wanderlust on new frame." t)
(autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t)

navi2ch

URL

Install

% date
Fri May  2 12:56:00 JST 2003
% mkdir ~/src/navi2ch-cvs
% cd ~/src/navi2ch-cvs
% cvs -d:pserver:anonymous@cvs.navi2ch.sourceforge.net:/cvsroot/navi2ch login
% cvs -z3 -d:pserver:anonymous@cvs.navi2ch.sourceforge.net:/cvsroot/navi2ch co navi2ch
% cd navi2ch
% ./configure
% make
% sudo make install

Config

~/.emacs に
(autoload 'navi2ch "navi2ch" "Navigator for 2ch for Emacs" t)

monafont

URL

Install

% curl -O http://umn.dl.sourceforge.net/sourceforge/monafont/monafont-ttf-2.30pre.zip
% mkdir monafont-ttf-2.30pre
% cd monafont-ttf-2.30pre
% unzip ../monafont-ttf-2.30pre.zip

Finder で mona.ttf を /Library/Font にコピー

jless (Jam less)

URL

Install

% curl -O http://www.io.com/%7Ekazushi/less/less-358-iso254.patch.gz
% curl -O http://www.io.com/%7Ekazushi/less/less-358.tar.gz
% tar xfz less-358.tar.gz 
% cd less-358
% gzcat ../less-358-iso254.patch.gz | patch -p1
% ./configure
% make
% sudo make install

Config

~/.bashrc に
export LANG=ja_JP.EUC
export PAGER=less
つうか fink install jless でよかった

ChaSen

URL

Install

% curl -O darts-0.1.tar.gz
% curl -O chasen-2.3.0.tar.gz
% curl -O ipadic-2.5.1.tar.gz
% tar xfz darts-0.1.tar.gz
% cd darts-0.1
% ./configure
% make
% make check
% sudo make install
% cd ..
% tar xfz chasen-2.3.0.tar.gz
% cd chasen-2.3.0
;; --disable-shared しないと make できない
% ./configure --disable-shared
% make
% sudo make install
% cd ..
% tar xfz ipadic-2.5.1.tar.gz
% cd ipadic-2.5.1
% ./configure
% make
% sudo mkdir -p /usr/local/etc
% sudo make install

SKK

URL

Install

% curl -O http://openlab.ring.gr.jp/skk/maintrunk/ddskk-20030427.tar.gz
% curl -O http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.L.gz
% tar xfz ddskk-20030427.tar.gz 
% cd ddskk-20030427
% gunzip ../SKK-JISYO.L.gz
% mv SKK-JISYO.L dic/
% make
;; info の生成に失敗するので doc/skk.texi を euc-japan-unix に変換して保存
% cd doc
% makeinfo --force skk.texi
% cd ..
% sudo make install

Apple X11 for MacOS X beta3

URL

Install

IE で

Finder で

% cp -p /etc/X11/xinit/xinitrc ~/.xinitrc
% chmod 644 ~/.xinitrc

Dynamic Macro (dmacro.el)

URL

Install

% curl -O http://www.csl.sony.co.jp/person/masui/DynamicMacro/dmacro.el

Emacs で M-x byte-compile-file RET dmacro.el RET

% sudo install -c -m 644 dmacro.el /usr/local/share/emacs/site-lisp/dmacro.el
% sudo install -c -m 644 dmacro.elc /usr/local/share/emacs/site-lisp/dmacro.elc

Config

~/.emacs に
(defconst *dmacro-key* "\C-t" "繰返し指定キー")
(global-set-key *dmacro-key* 'dmacro-exec)
(autoload 'dmacro-exec "dmacro" nil t)

AquaSKK

URL

Install

% date
Sat May  3 23:12:14 JST 2003
% cvs -d :pserver:anonymous@cvs.privatelink.org:/phonohawk login
% cvs -z3 -d :pserver:anonymous@cvs.privatelink.org:/phonohawk co AquaSKK

Finder で

Config

LiteSwitch X 1.0.1J

URL

Install

Mew

URL

Install

% curl -O ftp://ftp.mew.org/pub/Mew/release/mew-3.2.tar.gz
% tar xfz mew-3.2.tar.gz 
% cd mew-3.2
% make
% sudo make install
% sudo make install-jinfo

Config

TODO

iPulse 1.0.3

URL

Install

Fink 0.5.2

URL

Install

/sw/etc/fink.conf を以下のように編集

% cd /sw/etc
% sudo cp -p fink.conf fink.conf.20030504
% sudo vi fink.conf
% diff -u0 fink.conf.20030504 fink.conf
--- fink.conf.20030504  Sun Apr 13 23:13:36 2003
+++ fink.conf   Sun May  4 20:50:01 2003
@@ -4 +4 @@
-Trees: local/main stable/main stable/crypto local/bootstrap
+Trees: local/main stable/main stable/crypto local/bootstrap unstable/main unstable/crypto

~/.bashrc に

. /sw/bin/init.sh

一応 OS 再起動

% date
Sun May  4 22:22:13 JST 2003
% fink selfupdate-cvs
% fink install system-xfree86 

kterm

URL

Install

% date
Sun May  4 22:24:19 JST 2003
% fink install kterm

canna

URL

Install

% date
Sun May  4 22:29:43 JST 2003
% sudo niutil -create / /users/canna
% sudo niutil -create / /groups/canna
% fink install canna

kinput2

URL

Install

% date
Sun May  4 23:03:18 JST 2003
% fink install kinput2

cannadic

URL

Install

% date
Mon May  5 00:42:35 JST 2003
% fink install cannadic

Config

% cp -p /sw/var/lib/canna/sample/sample.canna ~/.canna
% chmod 644 ~/.canna

~/.canna を 以下のように編集

% diff -u0 .canna~ .canna
--- .canna~  Sun May  4 23:01:37 2003
+++ .canna   Mon May  5 00:47:37 2003
@@ -55 +55,3 @@
- "iroha"
+ "gcanna"
+ "gcannaf"
+ ;; "iroha"
% mkdic -fq gcanna

X11 日本語環境

URL

Config

~/.MacOSX/environment.plist を http://member.nifty.ne.jp/poseidon/x11.html を参考に Property List Editor で作成する
% cat ~/.MacOSX/environment.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>LANG</key>
	<string>ja_JP.EUC</string>
	<key>LC_COLLATE</key>
	<string>C</string>
	<key>LC_TIME</key>
	<string>C</string>
	<key>XMODIFIERS</key>
	<string>"@im=kinput2"</string>
</dict>
</plist>

~/.xinitrc の # start some nice programs あたりに以下を追加

export LANG=ja_JP.EUC
export LC_COLLATE=C
export LC_TIME=C

export XMODIFIERS="@im=kinput2" 
kinput2 & 

~/.bashrc に以下を追加

alias kterm='kterm -km euc -xim '
% curl -O http://www006.upp.so-net.ne.jp/t_tanaka/data/Xmodmap
% mv Xmodmap ~/.Xmodmap

autoconf 2.57

Install

% date
Mon May  5 14:05:26 JST 2003
% fink install autoconf2.5

dlcompat

Install

% date
Mon May  5 14:23:31 JST 2003
% fink install dlcompat

Gauche

URL

Install

% curl -O http://easynews.dl.sourceforge.net/sourceforge/gauche/Gauche-0.6.8.tgz
% tar xfz Gauche-0.6.8.tgz 
% cd Gauche-0.6.8
% ./configure --with-local=/sw --with-rpath=/sw/lib --with-iconv=/sw --enable-threads=pthreads
% make
% make test
% sudo make install
% cd doc
% sudo make install
% sudo vi /usr/local/info/dir

/usr/local/info/dir に以下を追加

 The Algorithmic Language Scheme
 * Gauche Reference: (gauche-refe.info). An R5RS Scheme implementation.
 * Gauche Reference (ja): (gauche-refj.info).    An R5RS Scheme implementation.

~/.emacs に

(setq scheme-program-name "/usr/local/bin/gosh -i")
(autoload 'run-scheme "cmuscheme" "Run an inferior Scheme process. " t)

CVS 版(失敗)

% mkdir -p ~/src/gauche-cvs
% cd ~/src/gauche-cvs
% date
Mon May  5 12:19:26 JST 2003
% cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gauche login 
% cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gauche co Gauche
% cd Gauche
% ./DIST gen
% ./configure --with-local=/sw --with-rpath=/sw/lib --with-iconv=/sw --enable-threads=pthreads
% make
./src/gosh がうまく make できないのであきらめた

GTK+

URL

Install

gtk+-1.2.10-13.info を以下のように修正
% diff -u0 gtk+-1.2.10-13.info.20030506 gtk+-1.2.10-13.info
--- gtk+-1.2.10-13.info.20030506        Fri Mar 28 08:05:02 2003
+++ gtk+-1.2.10-13.info Tue May  6 14:45:59 2003
@@ -12 +12 @@
-ConfigureParams: --disable-shm --infodir=%p/share/info --mandir=%p/share/man
+ConfigureParams: --disable-shm --infodir=%p/share/info --mandir=%p/share/man --with-xinput=xfree --with-locale=ja_JP.EUC
% date
Tue May  6 14:44:10 JST 2003
% fink install gtk+

GIMP

URL

Install

% date
Tue May  6 15:50:30 JST 2003
% sudo apt-get install gimp

nkf

Install

% date
Tue May  6 19:02:15 JST 2003
% fink install nkf

jman

URL

Install

% curl -O http://www.fan.gr.jp/~sakai/jman-20030112.dmg.gz
% gunzip jman-20030112.dmg.gz

Finder で jman-20030112.dmg をダブルクリック

Config

~/.bashrc
export LV=-Oej

Safari 1.0 Beta 2 (v72)

URL

Install

OS アップデート (MacOS X 10.2.6)

Install

Doc から [システム環境設定] - [ソフトウェアアップデート] 「MaxOS X アップデート (10.2.6)」を選択

% uname -a
Darwin bar.local. 6.6 Darwin Kernel Version 6.6: Thu May  1 21:48:54 PDT 2003;
root:xnu/xnu-344.34.obj~1/RELEASE_PPC  Power Macintosh powerpc

fileutils

Install

% date
Thu May  8 03:05:30 JST 2003
% fink selfupdate
% fink install fileutils

Config

~/.bashrc に
alias ls='ls -Fx --color=auto '

php-mode

URL

Install

% date
Fri May  9 19:31:37 JST 2003
% curl -O http://easynews.dl.sourceforge.net/sourceforge/php-mode/php-mode.el
% emacs -batch -f batch-byte-compile php-mode.el
% sudo install -c -m 644 php-mode.el /usr/local/share/emacs/site-lisp/php-mode.el
% sudo install -c -m 644 php-mode.elc /usr/local/share/emacs/site-lisp/php-mode.elc

Config

~/.emacs に
(require 'php-mode)
(add-hook 'php-mode-user-hook
          '(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))

Safari Enhancer 2.0

URL

Install

Safari で http://homepage.mac.com/gordonbyrnes/software/safari_enhancer.dmg をクリック

XEmacs

URL

Install

% date
Sat May 10 23:00:53 JST 2003
% fink selfupdate
% fink update-all
% fink install xemacs

日本語が使えなかったので xemacs-21.5.9-4.info に --with-mule --cflags=-DX_LOCALE を追加

% diff -u0 /sw/fink/10.2/unstable/main/finkinfo/editors/xemacs-21.5.9-4.info.20030511  /sw/fink/10.2/unstable/main/finkinfo/editors/xemacs-21.5.9-4.info
--- /sw/fink/10.2/unstable/main/finkinfo/editors/xemacs-21.5.9-4.info.20030511
Sun Mar  2 04:38:13 2003
+++ /sw/fink/10.2/unstable/main/finkinfo/editors/xemacs-21.5.9-4.info   Sun May 11 05:37:56 2003
@@ -22 +22 @@
-ConfigureParams: --with-dialogs=athena --with-widgets=athena --with-sound=none --with-database=no --without-ldap --without-postgresql --with-athena=3d 
+ConfigureParams: --with-dialogs=athena --with-widgets=athena --with-sound=none --with-database=no --without-ldap --without-postgresql --with-athena=3d --with-mule --cflags=-DX_LOCALE
% fink rebuild xemacs
% fink install xemacs-sumo-pkg
% curl -O http://ftp.us.xemacs.org/ftp/pub/xemacs/Attic/packages/oldsumo/xemacs-mule-sumo-2002-09-19.tar.bz2
% cd /sw/lib/xemacs
% sudo tar xfj ~/src/xemacs-mule-sumo-2002-09-19.tar.bz2 

xmahjongg

Install

% date     
Sun May 11 04:54:25 JST 2003
% fink install xmahjongg

imlib

Install

% date
Tue May 13 01:05:34 JST 2003
% fink install imlib
この後 w3m を再インストール

w3m (inline image support)

Install

kterm で
% date
Tue May 13 01:42:25 JST 2003
% cd ~/src
% rm -rf w3m-0.4.1
% tar xfz w3m-0.4.1.tar.gz 
% cd w3m-0.4.1
% configure
;; Inline image support で y を選択
% make
% sudo make install

fink selfupdate

Install

% date                       
Wed May 21 02:52:19 JST 2003
% fink selfupdate
% fink update-all

Safari 1.0 Beta 2 (v74)

Install

Doc から [システム環境設定] - [ソフトウェアアップデート] 「Safari Update (1.0 Beta 2 (v74))」を選択

OpenOffice.org 1.0.1.3 Final Beta Release for DarwinPPC

URL

Install

MAC POWER 2003.6 CD-ROM より HDD にコピー

% gunzip ooo1013darwinfb.dmg\ 3.gz 
% mv ooo1013darwinfb.dmg\ 3 ooo1013darwinfb.dmg
% sudo ln -s /sw/lib/libdl.* /usr/local/lib/

Finder で

Config

~/.bashrc に
export DYLD_LIBRARY_PATH=/Applications/OpenOffice.org1.0.1/program:/Applications/OpenOffice.org1.0.1/progam/filter:/usr/X11R6/lib
% source ~/.bashrc
% /Applications/OpenOffice.org1.0.1/program/soffice

以下のエラーがでて起動できないので

salogl.cxx/GetOGLFnc():  Could not load symbol glFlush
dyld: /Applications/OpenOffice.org1.0.1/program/soffice.bin Undefined symbols:
OpenGL undefined reference to _gll_noop expected to be defined in /usr/X11R6/lib/libGL.dylib
OpenGL undefined reference to _gll_pkey expected to be defined in /usr/X11R6/lib/libGL.dylib
Trace/BPT trap

http://simon.urbanek.info/simon/yawe/research/other.html を参考にして

% cd /usr/X11R6/lib/
% sudo mv libGL.dylib libGL.dylib.x
% sudo ln -s /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib .
% sudo mv libGLU.dylib libGLU.dylib.x
% sudo ln -s /System/Library/Frameworks/OpenGL.framework/Libraries/libGLU.dylib . 
この変更が他のアプリケーションに影響がでるかは不明 (glxgears は動いた)

xterm から

% /Applications/OpenOffice.org1.0.1/program/soffice
kinput2 が起動してないと Bus error で落ちる

東風フォント

URL

Install

% curl -O http://www.on.cs.keio.ac.jp/~yasu/linux/fonts/kochi-mincho-0.2.20020727.tar.bz2
% curl -O http://www.on.cs.keio.ac.jp/~yasu/linux/fonts/kochi-gothic-0.2.20030118.tar.bz2
% tar xfj kochi-mincho-0.2.20020727.tar.bz2 
% cd kochi-mincho/fonts
% install -c -m 644 kochi-mincho.ttf /Applications/OpenOffice.org1.0.1/share/fonts/truetype/kochi-mincho.ttf
% tar xfj kochi-gothic-0.2.20030118.tar.bz2
% cd kochi-gothic/fonts
% install -c -m 644 kochi-gothic.ttf /Applications/OpenOffice.org1.0.1/share/fonts/truetype/kochi-gothic.ttf

Config

OpenOffice.org を起動して

Clutter

URL

Install

% date 
Wed May 21 04:31:13 JST 2003
% curl -O http://www.sprote.com/clutter/Clutter.sit

Finder で

Maya 4.5PLE

URL

Install

Finder で MayaPLE45-J.bin をダブルクリック

RollerCoaster

URL

Install

% curl -O http://www.subsume.com/pub/RollerCoaster/RollerCoaster-1.1.0.dmg

Finder で

Allegro Common Lisp 6.2 trial

URL

Install

Web で登録するとメールでライセンスファイルが送られてくるので devel.lic という名前で保存
% curl -O http://ftp.franz.com/ftp/pub/acl62trial/macosx/acl62_trial.bz2
% sudo bunzip2 < acl62_trial.bz2 | (cd /usr/local; tar xf -)
% cp -p devel.lic /usr/local/acl62_trial/
% cd /usr/local/acl62_trial
% date
Fri May 23 03:50:55 JST 2003
% ./alisp
CL-USER(1): (sys:update-allegro)
CL-USER(2): (exit)
% ./update.sh

Config

~/.bashrc
export PATH="/usr/local/acl62_trial:/usr/local/bin:$PATH"

~/.emacs

;; Allegro Common Lisp 6.2 trial
(add-to-list 'load-path "/usr/local/acl62_trial/eli")
;;(load "/usr/local/acl62_trial/eli/fi-site-init")
(autoload 'fi:common-lisp "fi-site-init" "Allegro Common Lisp" t)
(setq fi:common-lisp-image-file "/usr/local/acl62_trial/alisp.dxl")
(setq fi:common-lisp-image-name "/usr/local/acl62_trial/alisp")
(defun run-common-lisp ()
  (interactive)
  (fi:common-lisp fi:common-lisp-buffer-name
                  fi:common-lisp-directory
                  fi:common-lisp-image-name
                  fi:common-lisp-image-arguments
                  fi:common-lisp-host
                  fi:common-lisp-image-file)
  (set-buffer-process-coding-system 'emacs-mule 'emacs-mule))

3DOSX

URL

Install

% curl -O http://www.acm.uiuc.edu/macwarriors/eoh2k2/3dosx/3DOSX-1.5_MWSF_Edition.dmg.gz
% gunzip 3DOSX-1.5_MWSF_Edition.dmg.gz 

Finder で

LHa for UNIX

URL

Install

% date
Mon May 26 19:22:01 JST 2003
% curl -O http://downloads.sourceforge.jp/lha/1548/lha-1.14i-ac20020903.tar.gz
% ./configure 
% make
% sudo make install

Microsoft IntelliPoint Software for Mac OS X Version 3.1

URL

Install

iTunes 4.0.1

Install

% date
Wed May 28 15:09:55 JST 2003

ソフトウェアアップデートで iTunes 4.0.1 を選択

arKaos visualizer 1.5.4

URL

Install

% curl -O ftp://ftp.arkaos.net/pub/ArKaosVisualizer/ArKaosVisualizer_1_54.bin

Finder で ArKaosVisualizer_1_54.bin をダブルクリック

fink selfupdate

Install

% date
Fri May 30 09:07:57 JST 2003
% fink selfupdate
% fink update-all

DrScheme 204

URL

Install

% curl -O http://download.plt-scheme.org/bundles/204/plt/PLT_Scheme.dmg

Finder で

Audion 3.0.2

URL

Install

Marine Aquarium

URL

Install

Finder で

ncftp

Install

% date
Sat May 31 23:25:42 JST 2003
% fink install ncftp

Quake III Arena X 1.3.2

Install

% curl -O -C - http://downloadsx-1.planetmirror.com/pub/idgames/idstuff/quake3/mac/Quake3-132.pkg.sit
製品版がいるみたいで、動作せず

Carbon Emacs 再インストール

URL

Install

% date
Sun Jun  1 10:38:35 JST 2003
% rm -rf ~/src/emacs-cvs
% mkdir -p ~/src/emacs-cvs
% cd ~/src/emacs-cvs
% cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/emacs login
% cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/emacs co emacs
% cd emacs
% ./configure --without-x --enable-carbon-app
% make bootstrap
% sudo make install

migemo

URL

Install

% curl -O http://namazu.org/~satoru/ruby-bsearch/ruby-bsearch-1.5.tar.gz
% curl -O http://namazu.org/~satoru/ruby-romkan/ruby-romkan-0.4.tar.gz
% curl -O http://migemo.namazu.org/stable/migemo-0.40.tar.gz
% tar xfz ruby-bsearch-1.5.tar.gz
% tar xfz ruby-romkan-0.4.tar.gz
% tar xfz migemo-0.40.tar.gz
% cd migemo-0.40

以下をしないと configure が通らない。本当はあらかじめ /usr/lib/ruby/site_ruby にコピーしておくのだが、そうすると tests ディレクトリの make で無限ループ(?)する。 こうしておくと tests の make が失敗するが、本体は make できる。

% cp -p ../ruby-bsearch-1.5/bsearch.rb .
% cp -p ../ruby-romkan-0.4/romkan.rb .
% ./configure
% make
% sudo make install

migemo のインストール後にコピーする

% cd ../ruby-bsearch-1.5
% sudo install -c -m 644 bsearch.rb /usr/lib/ruby/site_ruby/bsearch.rb
% cd ../ruby-romkan-0.4
% sudo install -c -m 644 romkan.rb /usr/lib/ruby/site_ruby/romkan.rb

~/.emacs

;; migemo
(load "migemo.el")
(setq migemo-use-pattern-alist t)
(setq migemo-use-frequent-pattern-alist t)

強引にインストールしたものの、誤検索する場合があるので cmigemo を使うことにした。

qkc

Install

% date    
Sun Jun  1 03:31:49 JST 2003
% fink install qkc

cmigemo 1.1

URL

Install

% curl -O http://www.kaoriya.net/dist/var/cmigemo-1.1.tar.bz2
% tar xfj cmigemo-1.1.tar.bz2
% cd cmigemo-1.1

http://homepage3.nifty.com/akima/soft/meadow_24.html#SEC332 を参考に main.c を以下のように修正

% diff -u0 main.c~ main.c
--- main.c~	Thu May 16 14:05:28 2002
+++ main.c	Sun Jun  1 04:08:12 2003
@@ -45,0 +46,2 @@
+	// 2002-10-01
+	fflush(stdout);
@@ -73,0 +76,2 @@
+    // 2002-10-01 for emacs 
+    int mode_emacs = 0;
@@ -88,0 +93,12 @@
+	// 2002-10-01
+	else if (**argv != '-')
+	    dict = *argv;
+	// 2002-10-01
+	else if (argv[1] && (!strcmp ("--type", *argv) || !strcmp ("-t", *argv)))
+	{
+	    argv++;
+	    if (!strcmp ("emacs", *argv))
+	        mode_emacs = 1;
+	    else if (!strcmp ("vim", *argv))
+	        mode_vim = 1;
+	}
@@ -134,0 +151,9 @@
+        if (mode_emacs)
+        {
+            migemo_set_operator (pmigemo, MIGEMO_OPINDEX_OR, "\\|");
+            migemo_set_operator (pmigemo, MIGEMO_OPINDEX_NEST_IN, "\\(");
+            migemo_set_operator (pmigemo, MIGEMO_OPINDEX_NEST_OUT, "\\)");
+            //migemo_set_operator (pmigemo, MIGEMO_OPINDEX_NEST_IN, "");
+            //migemo_set_operator (pmigemo, MIGEMO_OPINDEX_NEST_OUT, "");
+            migemo_set_operator (pmigemo, MIGEMO_OPINDEX_NEWLINE, "\\s *");
+        } 

あらかじめ SKK-JISYO.L を dict にコピーしておく

% cp -p /usr/local/share/skk/SKK-JISYO.L dict/
% make osx
% make osx-dict
% sudo make osx-install

Config

~/.emacs
;; migemo
(load "migemo.el")
(setq migemo-use-pattern-alist t)
(setq migemo-use-frequent-pattern-alist t)
(setq migemo-command "cmigemo")
(setq migemo-options '("-q" "-t" "emacs"))
(setq migemo-dictionary "/usr/local/share/migemo/euc-jp/migemo-dict")
(setq migemo-user-dictionary nil)
(setq migemo-regex-dictionary nil)

migemo はたまに誤検索をするので cmigemo を使うことにした

fink selfupdate

Install

% date
Mon Jun  2 18:54:18 JST 2003
% fink selfupdate
% fink update-all

PostgreSQL 7.3.3

URL

Install

% curl -O ftp://ftp.sra.co.jp/pub/cmd/postgres/7.3.3/postgresql-7.3.3.tar.gz
% tar xfz postgresql-7.3.3.tar.gz
% cd postgresql-7.3.3
% ./configure --enable-multibyte=EUC_JP --with-includes=/sw/include/gnugetopt:/sw/include --with-libraries=/sw/lib
% make
% sudo make install
% sudo mkdir /usr/local/pgsql/data
% sudo chown foo /usr/local/pgsql/data
% /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

Config

~/.bashrc
export POSTGRES_HOME=/usr/local/pgsql
export PATH=$POSTGRES_HOME/bin:"$PATH"
export PGLIB=$POSTGRES_HOME/lib
export PGDATA=$POSTGRES_HOME/data
if [ -z "$MANPATH" ]; then
    export MANPATH=$POSTGRES_HOME/man
else
    export MANPATH=$POSTGRES_HOME/man:"$MANPATH"
fi
if [ -z "$LD_LIBRARY_PATH" ]; then
    export LD_LIBRARY_PATH="$PGLIB"
else
    export LD_LIBRARY_PATH="$PGLIB":"$LD_LIBRARY_PATH"
fi

テスト

% source ~/.bashrc
% pg_ctl -w start
% cd src/test/regress
% make check

php 4.1.2

URL

Install

% curl -O ftp://ftp.inter.spin.ad.jp/.02/OpenBSD/distfiles/rmd160/php-4.0.6.tar.gz
% curl -O http://jp2.php.net/distributions/php-4.1.2.tar.gz
% sudo cp -p /usr/local/pgsql/lib/libpq.a /usr/local/pgsql/lib/libpq.a.org
% sudo ranlib /usr/local/pgsql/lib/libpq.a 

php-4.0.6 を configure する

% tar xfz php-4.0.6.tar.gz
% cd php-4.0.6
% ./configure --with-apxs --with-pgsql --without-mysql --without-gd --enable-track-vars --enable-versioning --enable-trans-sid --enable-mbstring

php-4.0.6 の libtool を以下のように編集する( -flat_namespace を追加)

% diff -u0 libtool~ libtool
--- libtool~    Wed Jun  4 05:01:52 2003
+++ libtool     Wed Jun  4 05:04:48 2003
@@ -178 +178 @@
-archive_cmds="\$CC -bundle -undefined suppress -o \$lib \$libobjs \$deplibs \$linkopts"
+archive_cmds="\$CC -flat_namespace -bundle -undefined suppress -o \$lib \$libobjs \$deplibs \$linkopts"

php-4.1.2 を make する

% cd ..
% tar xfz php-4.1.2.tar.gz
% cd php-4.1.2
% ./configure --with-apxs --with-pgsql --without-mysql --without-gd --enable-track-vars --enable-versioning --enable-trans-sid --enable-mbstring
% cp -p libtool libtool.org
% cp -p ../php-4.0.6/libtool .
% make
% sudo make install

コマンドライン版も make する

% make distclean
% ./configure --with-pgsql --without-mysql --without-gd --enable-track-vars --enable-versioning --enable-trans-sid --enable-mbstring --enable-force-cgi-redirect
% make
% sudo make install

PostgreSQL を起動

% pg_ctl -w -o "-i -S" start

[システム環境設定] - [共有] - [サービス] - [パーソナル Web 共有] で Apache を再起動

以上で Apache-1.3.27 + PHP-4.1.2 + PostgreSQL-7.3.3 が動作する

sdic-2.1.3

URL

Install

% curl -O http://namazu.org/~tsuchiya/sdic/sdic-2.1.3.tar.gz
% curl -O http://namazu.org/~tsuchiya/sdic/data/gene95.tar.bz2
% curl -O http://namazu.org/~tsuchiya/sdic/data/edict.bz2
% tar xfz sdic-2.1.3.tar.gz 
% cd sdic-2.1.3
% cp -p ../gene95.tar.bz2 .
% cp -p ../edict.bz2 .
% ./configure
% make
% sudo make install
% sudo make install-info
% make dict
% sudo make install-dict
% sudo vi /usr/local/info/dir

/usr/local/info/dir

 Dictionary
 * sdic: (sdic).         SDIC Reference Manual.

Config

~/.emacs
(autoload 'sdic-describe-word "sdic" "英単語の意味を調べる" t nil)
(global-set-key "\C-cw" 'sdic-describe-word)
(autoload 'sdic-describe-word-at-point "sdic" "カーソルの位置の英単語の意味を調べる" t nil)
(global-set-key "\C-cW" 'sdic-describe-word-at-point)

lookup-1.3

URL

Install

% curl -O http://download.sourceforge.net/lookup/lookup-1.3.tar.gz
% tar xfz lookup-1.3.tar.gz 
% cd lookup-1.3
% ./configure
% make
% sudo make install
% sudo vi /usr/local/info/dir

/usr/local/info/dir

 The Emacs editor and associated tools
 * Lookup: (lookup).             Lookup, a Search Interface.
 * Lookup Guide: (lookup-guide). The Lookup User's Guide.

Config

~/.emacs
(autoload 'lookup "lookup" nil t)
(autoload 'lookup-region "lookup" nil t)
(autoload 'lookup-pattern "lookup" nil t)
(setq lookup-search-agents '((ndic "/usr/local/share/dict")))

Sary 1.0.4

URL

Install

% curl -O http://sary.namazu.org/stable/sary-1.0.4.tar.gz
% tar xfz sary-1.0.4.tar.gz
% cd sary-1.0.4
% ./configure

libtool を以下のように編集

% diff -u0 libtool~ libtool
--- libtool~    Wed Jun 11 03:45:27 2003
+++ libtool     Wed Jun 11 03:46:06 2003
@@ -200 +200 @@
-allow_undefined_flag="-undefined suppress"
+allow_undefined_flag="-flat_namespace -undefined suppress"
% make
% sudo make install

POBox 1.2.5

URL

Install

% curl -O http://www.csl.sony.co.jp/person/masui/OpenPOBox/dist/pobox-1.2.5.tgz
% tar xfz pobox-1.2.5.tgz
% mv OpenPOBox OpenPOBox-1.2.5
% cd OpenPOBox-1.2.5

以下は Sary を使う場合

% env CFLAGS="-I/sw/include/glib-1.2 -I/sw/lib/glib/include" LDFLAGS="-L/sw/lib" ./configure --enable-sary
% make
;; asearch/libasearch.a を ranlib しないと make できない
% ranlib asearch/libasearch.a
% make
% cd server
% nkf -e < ../dict/data/fugodic > staticdic
% mksary -l staticdic
% touch learndic

しかし、Sary を使うとすぐサーバが落ちるので Sary を使わないようにした

% ./configure
% make
% ranlib asearch/libasearch.a
% make
% cd server
% nkf -e < ../dict/data/fugodic > learndic 
% cd ..
% cp -p Emacs/pobox.el ~/elisp
% cp -p Emacs/romakana.el ~/elisp

~/elisp/pobox.el を以下のように修正する

% diff -u0 pobox.el~ pobox.el
--- pobox.el~   Wed Jun 11 02:55:01 2003
+++ pobox.el    Wed Jun 11 03:18:11 2003
@@ -7 +7 @@
-(require 'romakana "romakana.el")
+(require 'romakana)

Emacs を起動して M-x byte-compile-file で romakanal.el, pobox.el をコンパイル

Config

~/.emacs に
(setq pobox-toggle-key "\C-c\C-j")
(global-set-key pobox-toggle-key 'pobox-mode)
(autoload 'pobox-mode "pobox")
(setq pobox-server "localhost")

サーバの起動

% cd ~/src/OpenPOBox-1.2.5/server
% ./pbserver &

fink selfupdate

Install

% date
Mon Jun 16 08:16:28 JST 2003
% fink selfupdate
% fink update-all

automake

Install

% date
Mon Jun 16 09:59:37 JST 2003
% fink install automake1.7

libtool

Install

% date
Mon Jun 16 10:01:49 JST 2003
% fink install libtool14

find

Install

% date
Mon Jun 16 10:21:14 JST 2003
% fink install findutils

guile

URL

Install

% fink install guile16

IE 5.2.3

URL

Install

IE で http://www.microsoft.com/mac/DOWNLOAD/IE/ie5_osx.asp から InternetExplorer523.dmg をダウンロードしてダブルクリック

Emacs Wiki 2.39

URL

Install

% mkdir emacs-wiki-2.39
% cd emacs-wiki-2.39
% curl -O http://repose.cx/emacs/wiki/emacs-wiki.el.gz
% gunzip emacs-wiki.el.gz
% install -c -m 644 emacs-wiki.el ~/elisp/

~/.emacs

;;; Emacs Wiki 2.39
(require 'emacs-wiki)

RIVEN

URL

Install

fink selfupdate

Install

% date
Wed Jun 25 21:12:51 JST 2003
% fink selfupdate
% fink update-all

0.5.3.cvs になった

mode-info

URL

Install

% curl -O http://www.namazu.org/~tsuchiya/elisp/mode-info-0.1.4.tar.gz
% tar xfz mode-info-0.1.4.tar.gz 
% cd mode-info-0.1.4
% ./configure --with-info-addpath=/usr/local/info:/sw/share/info
% make
% sudo make install
% make index
% sudo mkdir -p /usr/local/share/emacs/21.3.50/etc/mode-info
% sudo make install-index

~/.emacs

;;; mode-info
(require 'mi-config)
(define-key global-map "\C-chf" 'mode-info-describe-function)
(define-key global-map "\C-chv" 'mode-info-describe-variable)
(define-key global-map "\M-." 'mode-info-find-tag)
(setq mode-info-class-alist
      '((elisp  emacs-lisp-mode lisp-interaction-mode)
        (emacs  nil)
        (libc   c-mode c++-mode)
        (make   makefile-mode)
        (octave octave-mode)
        (perl   perl-mode cperl-mode eperl-mode)
        (ruby   ruby-mode)
        (gauche scheme-mode scheme-interaction-mode inferior-scheme-mode)
        ;; swap guile and gauche
        (guile  scheme-mode scheme-interaction-mode inferior-scheme-mode)
        (scheme scheme-mode scheme-interaction-mode inferior-scheme-mode)))

grep-2.4.2-mlb2

URL

Install

日本語対応 grep
% curl -O ftp://ftp.gnu.org/gnu/grep/grep-2.4.2.tar.gz
% curl -O http://www.hinadori.dyn.to/~wills/program/grep-2.4.2-mlb2.patch.gz
% tar xfz grep-2.4.2.tar.gz 
% cd grep-2.4.2
% zcat ../grep-2.4.2-mlb2.patch.gz | patch -p1
% ./configure --host=powerpc-apple-bsd
;; これをしないと aclocal しはじめてエラーになる
% touch -r stamp-h.in *
% make
% sudo make install

code2html 0.9.1

URL

Install

% curl -O http://www.palfrader.org/code2html/all/code2html-0.9.1.tar.gz
% tar xfz code2html-0.9.1.tar.gz 
% cd code2html-0.9.1
% sudo install -c -m 755 code2html /usr/local/bin/
% sudo install -c -m 644 code2html.1 /usr/local/man/man1/

fink selfupdate

Install

% date
Fri Jul 11 21:37:12 JST 2003
% fink selfupdate
% fink update-all

aview

Install

% date
Fri Jul 11 22:01:25 JST 2003
% fink install aview

DivX 5.0.7

URL

http://www.divx.com/divx/mac/ http://download.divx.com/divx/mac/DivX507Installer.sit

Install

% curl -O http://download.divx.com/divx/mac/DivX507Installer.sit

3ivx Delta 4 - 4.0.4

URL

http://www.3ivx.com/ http://www.3ivx.com/codec/download_mac.php/3ivx_d4_404_mac.sit

Install

curl -O http://www.3ivx.com/codec/download_mac.php/3ivx_d4_404_mac.sit

unrar

Install

% date Sun Aug 10 10:52:24 JST 2003 % fink install unrar

liece-1.4.10

URL

http://www.unixuser.org/~ueno/liece/index.html.ja http://www.unixuser.org/~ueno/liece/dist/

Install

% date
Fri Aug 22 22:39:26 JST 2003
% curl -O http://www.unixuser.org/~ueno/liece/dist/liece-1.4.10.tar.gz
% tar xfz liece-1.4.10.tar.gz 
% cd liece-1.4.10
% ./configure
% make
% sudo make install

OS アップデート (MacOS X 10.2.8)

Install

Doc から [システム環境設定] - [ソフトウェアアップデート] 「MaxOS X アップデート (10.2.8)」を選択

% uname -a
Darwin bar.local. 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT 2003;
root:xnu/xnu-344.49.obj~2/RELEASE_PPC  Power Macintosh powerpc

mecab-0.76

Install

% curl -O http://cl.aist-nara.ac.jp/~taku-ku/software/mecab/src/mecab-0.76.tar.gz
% tar xfz mecab-0.76.tar.gz
% cd mecab-0.76
% cd dic
% tar xfz ~/src/ipadic-2.5.1.tar.gz
% cd ..
% ./configure
% make
以下のエラーが出て make に失敗する。
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -
O3 -Wall -c writer.cpp  -fno-common -DPIC -o .libs/writer.lo
writer.cpp: In member function `void 
   MeCab::Writer::writeNode(MeCab::StringBuffer&, const char*, const char*, 
   MeCab::Node*)':
writer.cpp:171: ambiguous overload for `MeCab::StringBuffer& << size_t' 
   operator
stringbuffer.h:51: candidates are: MeCab::StringBuffer& 
   MeCab::StringBuffer::operator<<(int)
stringbuffer.h:52:                 MeCab::StringBuffer& 
   MeCab::StringBuffer::operator<<(short int)
stringbuffer.h:53:                 MeCab::StringBuffer& 
   MeCab::StringBuffer::operator<<(unsigned int)
stringbuffer.h:54:                 MeCab::StringBuffer& 
   MeCab::StringBuffer::operator<<(short unsigned int)
stringbuffer.h:55:                 MeCab::StringBuffer& 
   MeCab::StringBuffer::operator<<(char)
stringbuffer.h:56:                 MeCab::StringBuffer& 
   MeCab::StringBuffer::operator<<(const char*) <near match>
make[2]: *** [writer.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Darwin では size_tunsigned long なのが原因か? よくわからないのでとりあえず int にキャストしておく。
--- src/writer.cpp.orig Tue Jul  1 15:43:22 2003
+++ src/writer.cpp      Wed Nov 19 20:26:10 2003
@@ -171 +171 @@
-       case 'L': os << strlen(ibuf); break;  // sentence length
+       case 'L': os << (unsigned int)strlen(ibuf); break;  // sentence length
こんな感じで修正した。
% make clean
% make
% sudo make install
試しに spamfilter-0.12 の README を食わせてみた。
% mecab ~/elisp/spamfilter/README 
-*-	未知語,*,*,*,*,*,*,*,*
mode	未知語,*,*,*,*,*,*,*,*
:	未知語,*,*,*,*,*,*,*,*
outline	未知語,*,*,*,*,*,*,*,*
;	未知語,*,*,*,*,*,*,*,*
coding	未知語,*,*,*,*,*,*,*,*
:	未知語,*,*,*,*,*,*,*,*
euc	未知語,*,*,*,*,*,*,*,*
-	未知語,*,*,*,*,*,*,*,*
japan	未知語,*,*,*,*,*,*,*,*
-*-	未知語,*,*,*,*,*,*,*,*
EOS
spamfilter	未知語,*,*,*,*,*,*,*,*
.	未知語,*,*,*,*,*,*,*,*
el	未知語,*,*,*,*,*,*,*,*
--	未知語,*,*,*,*,*,*,*,*
ベイジアンフィルタライブラリ	未知語,*,*,*,*,*,*,*,*
Susumu	未知語,*,*,*,*,*,*,*,*
Ota	未知語,*,*,*,*,*,*,*,*
(	未知語,*,*,*,*,*,*,*,*
ccbcc	未知語,*,*,*,*,*,*,*,*
@	未知語,*,*,*,*,*,*,*,*
black	未知語,*,*,*,*,*,*,*,*
.	未知語,*,*,*,*,*,*,*,*
livedoor	未知語,*,*,*,*,*,*,*,*
.	未知語,*,*,*,*,*,*,*,*
com	未知語,*,*,*,*,*,*,*,*
)	未知語,*,*,*,*,*,*,*,*
EOS
EOS
EOS
Segmentation fault
「* 概要」の部分で Segmentation fault。ちょっと原因を探るために -g 付きで再コンパイル。
--- configure.in.orig   Fri Jul  4 17:52:38 2003
+++ configure.in        Wed Nov 19 21:15:01 2003
@@ -79,2 +79,2 @@
-   CFLAGS="-O3 -Wall"
-   CXXFLAGS="-O3 -Wall"
+   CFLAGS="-g -O3 -Wall"
+   CXXFLAGS="-g -O3 -Wall"
こんな感じに書きかえて、
% make clean
% ./configure
% make
% sudo make install
(aclocal やら autoconf も実行される)

gdb で動かしてみる。

Current directory is /Users/ota/src/mecab-0.76/src/
GNU gdb 5.3-20021014 (Apple version gdb-250) (Sat Dec  7 02:14:27 GMT 2002)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-macos10".
Reading symbols for shared libraries .. done
(gdb) run ~/elisp/spamfilter/README
Starting program: /Users/ota/src/mecab-0.76/src/mecab ~/elisp/spamfilter/README
[Switching to process 24717 thread 0xb03]
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
-*-	未知語,*,*,*,*,*,*,*,*
mode	未知語,*,*,*,*,*,*,*,*
:	未知語,*,*,*,*,*,*,*,*
outline	未知語,*,*,*,*,*,*,*,*
;	未知語,*,*,*,*,*,*,*,*
coding	未知語,*,*,*,*,*,*,*,*
:	未知語,*,*,*,*,*,*,*,*
euc	未知語,*,*,*,*,*,*,*,*
-	未知語,*,*,*,*,*,*,*,*
japan	未知語,*,*,*,*,*,*,*,*
-*-	未知語,*,*,*,*,*,*,*,*
EOS
spamfilter	未知語,*,*,*,*,*,*,*,*
.	未知語,*,*,*,*,*,*,*,*
el	未知語,*,*,*,*,*,*,*,*
--	未知語,*,*,*,*,*,*,*,*
ベイジアンフィルタライブラリ	未知語,*,*,*,*,*,*,*,*
Susumu	未知語,*,*,*,*,*,*,*,*
Ota	未知語,*,*,*,*,*,*,*,*
(	未知語,*,*,*,*,*,*,*,*
ccbcc	未知語,*,*,*,*,*,*,*,*
@	未知語,*,*,*,*,*,*,*,*
black	未知語,*,*,*,*,*,*,*,*
.	未知語,*,*,*,*,*,*,*,*
livedoor	未知語,*,*,*,*,*,*,*,*
.	未知語,*,*,*,*,*,*,*,*
com	未知語,*,*,*,*,*,*,*,*
)	未知語,*,*,*,*,*,*,*,*
EOS
EOS
EOS

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x00046484 in MeCab::Tokenizer::getCost(_mecab_node_t const*, _mecab_node_t const*, _mecab_node_t const*) (this=0x5b0, lNode2=0x24bf006, lNode=0x0, rNode=0x2d8) at tokenizer.h:95
(gdb) p lNode
$1 = (const Node *) 0x0
(gdb) bt
#0  0x00046484 in MeCab::Tokenizer::getCost(_mecab_node_t const*, _mecab_node_t const*, _mecab_node_t const*) (this=0x5b0, lNode2=0x24bf006, lNode=0x0, rNode=0x2d8) at tokenizer.h:95
#1  0x000122f4 in MeCab::Viterbi::connectNormal(unsigned, _mecab_node_t*) (this=0x2507c0, pos=6, rNode=0x25ec1e0) at viterbisub.h:43
#2  0x00012068 in MeCab::Viterbi::analyze(char const*, unsigned) (this=0x2507c0, sentence=0x250a20 "* 概要", len=39731200) at viterbi.h:54
#3  0x00008450 in MeCab::Tagger::parse(int, char**) (this=0xbffffa60, argc=-1073743632, argv=0x250850) at tagger.cpp:316
#4  0x000023c4 in mecab_do (argc=2, argv=0xbffffb48) at libmecab.cpp:41
#5  0x0000213c in _start (argc=2, argv=0xbffffb48, envp=0xbffffb54) at /SourceCache/Csu/Csu-45/crt.c:267
#6  0x00001fbc in start ()
(gdb) up
#1  0x000122f4 in MeCab::Viterbi::connectNormal(unsigned, _mecab_node_t*) (this=0x2507c0, pos=6, rNode=0x25ec1e0) at viterbisub.h:43
(gdb) p lNode
$2 = (Node *) 0x25ec120
(gdb) p lNode->prev
$3 = (_mecab_node_t *) 0x25ec090
(gdb) p rNode
$4 = (Node *) 0x25ec1e0
(gdb) up
#2  0x00012068 in MeCab::Viterbi::analyze(char const*, unsigned) (this=0x2507c0, sentence=0x250a20 "* 概要", len=39731200) at viterbi.h:54
(gdb) p len
$5 = 39731200
(gdb) up
#3  0x00008450 in MeCab::Tagger::parse(int, char**) (this=0xbffffa60, argc=-1073743632, argv=0x250850) at tagger.cpp:316
(gdb) up
#4  0x000023c4 in mecab_do (argc=2, argv=0xbffffb48) at libmecab.cpp:41
(gdb) up
#5  0x0000213c in _start (argc=2, argv=0xbffffb48, envp=0xbffffb54) at /SourceCache/Csu/Csu-45/crt.c:267
267	/SourceCache/Csu/Csu-45/crt.c: No such file or directory.
	in /SourceCache/Csu/Csu-45/crt.c
Current language:  auto; currently c
(gdb) q
lNode が 0x0 なのがあやしい。

Windows Media Player 9 for Mac OS X

URL

http://www.microsoft.com/japan/windows/windowsmedia/software/Macintosh/osx/default.aspx

Install

jnethack-3.4.2-0.1

URL

http://nethack-users.sourceforge.jp/ http://nethack.at.infoseek.co.jp/jnethack105/compile.html http://homepage.mac.com/toveta/docs/osx-nethack.html

Install

% curl -O http://keihanna.dl.sourceforge.net/sourceforge/nethack/nethack-342.tgz
% curl -O http://keihanna.dl.sourceforge.jp/jnethack/6775/jnethack-3.4.2-0.1.diff.gz
% tar xfz nethack-342.tgz 
% cd nethack-3.4.2/
% gzcat ../jnethack-3.4.2-0.1.diff.gz | patch -p1
以下のような修正をする。
% diff -u0 sys/unix/Makefile.src~ sys/unix/Makefile.src
--- sys/unix/Makefile.src~      Tue Dec  2 20:58:05 2003
+++ sys/unix/Makefile.src       Tue Dec  2 21:07:42 2003
@@ -157 +157 @@
-CFLAGS = -W -g -O -I../include
+CFLAGS = -W -g -O -I../include -DNeXT -Dbsdi -DTERMINFO
% diff -u0 sys/unix/Makefile.top~ sys/unix/Makefile.top
--- sys/unix/Makefile.top~      Tue Dec  2 20:58:05 2003
+++ sys/unix/Makefile.top       Tue Dec  2 20:59:23 2003
@@ -17 +17 @@
-PREFIX  = /usr
+PREFIX  = /usr/local
@@ -20,2 +20,2 @@
-GAMEUID  = games
-GAMEGRP  = bin
+GAMEUID  = ore
+GAMEGRP  = staff
% diff -u0 sys/unix/Makefile.utl~ sys/unix/Makefile.utl
--- sys/unix/Makefile.utl~      Tue Dec  2 20:58:05 2003
+++ sys/unix/Makefile.utl       Tue Dec  2 21:07:48 2003
@@ -92 +92 @@
-CFLAGS = -O -I../include
+CFLAGS = -O -I../include -DNeXT -Dbsdi -DTERMINFO
GAMEUID = ore のところは自分のユーザ ID を指定。
% sh sys/unix/setup.sh
% make all
% sudo make install
X11 版も make まではできたが、実行すると Segmentation Fault で落ちるので割愛。


Susumu Ota (ccbcc55@hotmail.com)