GNU Smalltalk インストールメモ (pubuntu 9.04)
GNU Smalltalk 3.2 を Portable Ubuntu DOS (Ubuntu 9.04ベース) に tarballインストールするメモ。
gawk と build-essensial が入って入れば最低限のビルドは出きるのですが、Blox(TK)と、3.2の売りである BloxGTK な環境が出来るようにする感じで。
基本的にはBuilding GST Guides | GNU Smalltalkのとおりで、躓く要素なんてどこにもないのですが・・実際、自身のへっぽこさ故に派手に躓いてしまったので...orz
まず準備。
sudo apt-get install build-essensial sudo apt-get install gawk sudo apt-get install libgtk2.0-dev libglib2.0-dev sudo apt-get install tcl8.4-dev tk8.4-dev
をしときます。(多分足りているハズだけど、いろいろゴチャゴチャやったのでもしかしたら抜けがあるかも)
で、tarball をGNU Smalltalk 3.2 | GNU Smalltalk からダウンロードしてきて、解凍。その後、
./configure --with-tcl=/usr/share/tcltk/tcl8.4 --with-tk=/usr/share/tcltk/tk8.4
Bloxを使う場合は、--with-tcl と --with-tk に それぞれ tclConfig.sh と tkConfig.sh のあるディレクトリへのパスを指定してあげます。(で、これら.sh は -dev 付きのやつじゃないと持ってこなかったり)
configure の出力をチェックして、Auxiliary libraries の
checking for Tcl 8.x... /usr/share/tcltk/tcl8.4 checking for Tk 8.x... /usr/share/tcltk/tk8.4 checking the include path for Tcl/Tk 8.x... -I/usr/include/tcl8.4 checking how to link with Tcl/Tk 8.x... -ldl -lpthread -lieee -lm -lX11 -L/usr/lib -ltcl8.4 -L/usr/lib -ltk8.4 checking whether to install BloxTK... yes checking whether to install BLOXBrowser... yes ・ ・ ・ checking for CAIRO... yes checking whether to install Cairo... yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.20.1) checking for pkg-config... (cached) /usr/bin/pkg-config checking for GTK+ - version >= 2.0.0... yes (version 2.16.1) checking for ATK... yes checking for PANGO... yes checking for GTHREAD... yes checking whether to install GTK... yes checking whether to install BloxGTK... yes checking whether to install Blox... yes
らへんがコケていないことをチェックしてから、
make make check sudo make install
します。
で、gst(コンソール)、gst-blox(Tk のシステムブラウザ)、gst-browser (GTK+のIED) と打ってみて、上手く動けば多分大丈夫。