Squeakブラウザプラグイン登録

Ubuntuではfirefox 2.0が標準ブラウザだが、ライブラリパスが/usr/lib/firefoxとなっているため、Squeakのブラウザプラグインが正しくインストールされない。これを直すにはSqueakブラウザプラグイン登録スクリプトnpsqueakregisterを修正する必要がある。
/usr/local/lib/squeak/npsqueakregisterをgeditなどでオープンする。

sudo gedit /usr/local/lib/squeak/npsqueakregister

次の赤文字の箇所を追記する。

#! /bin/sh

# File:        npsqueakregister
# Author:      Bert Freudenberg 
# Description: Script to register the npsqueak plugin with 
#              various browsers. 
#              Rerun after you installed a new browser!
# Parameters:  -u unregister

NPSQUEAK_SO=/usr/local/lib/squeak/3.9-8/npsqueak.so
BROWSERS="firefox netscape mozilla mozilla-firefox opera MozillaFirefox/lib"

これで保存する。

cd /usr/local/lib/squeak
sudo npsqueakregister

とすると正しくSqueakブラウザプラグインをインストールできる。あとはid:propellaさんのhttp://d.hatena.ne.jp/propella/20060507/p2 を参考にしてください。