MacにSBCLインストール
CMUCLの流れをくむSBCLが速度の面では良さそうであるので,付属のインストールマニュアル通りにインストールする
- Binary版をSBCLのサイトからbinary版をダウンロードして展開.
- 「ターミナル」を起動して,展開したフォルダに移動して以下のコマンドを実行する.
# INSTALL_ROOT=/usr/local sh install.sh
しろと書いてある.こんな書き方ができるんですねと思いつつ,デフォルトでrootにはなれないので,まずはsudoでやってみる.
$ sudo INSTALL_ROOT=/usr/local sh install.sh
Passwd:
sudo: INSTALL_ROOT=/usr/local: command not found
と失敗.MacOSXのbashでは,通らないのか?と思ったが,先頭の変数定義がまずいみたい.
$ sudo sh install.sh
で,すんなりインストールは成功する.
ファイルは/usr/local/以下にインストールされる.
$ ls /usr/local/bin sbcl $ ls /usr/local/lib/sbcl asdf sb-executable sb-rotate-byte site asdf-install sb-grovel sb-rt site-systems sb-aclrepl sb-introspect sb-simple-streams sb-bsd-sockets sb-md5 sb-sprof sb-cltl2 sb-posix sbcl.core
sbclを実行すると以下のメッセージが出力されて実行が確認できる.
$ sbcl This is SBCL 1.0.2, an implementation of ANSI Common Lisp. More information about SBCL is available at http://www.sbcl.org/. SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. *