XLisp-Stat のインストール方法
XLips-Stat という LISP 環境をセットアップする手順を説明します. Unix や Linux に慣れていない人は,Cygwin から CLISP を利用するよりも, こちらの方が手軽に LISP 環境を準備することができます. 以下で説明する XLisp-Stat のインストール方法では, OS は Windows XP Professional Service Pack 2 です.
XLisp-Stat は統計解析のために LISP を拡張したものです. フリーの統計解析ソフトウェアといえば R が全盛のこの時代に, XLisp-Stat を使って統計解析を行う(あるいは,統計学を学習する) ことはまずないでしょう. しかし,手軽に使うことのできるフリーの LISP 環境として重宝します. LISP を学習するために, あえて XLisp-Stat で統計解析を行うというのもいいと思います. 統計解析のための XLisp-Stat に関する書籍として,以下のものがあります.
- Tierney, L.(著)垂水共之・鎌倉稔成・ 林篤裕・奥村晴彦・水田正弘(訳)(1996) LISP-STAT. 共立出版.
- 垂水共之(1999) Lisp-Stat による統計解析入門.共立出版.
XLisp-Stat のプログラムをダウンロードする前に, ダウンロード先のフォルダを作成しておきます. たとえば,C ドライブの直下に xlisp とか xlispstat というフォルダを作成しておけばいいでしょう. XLisp-Stat のように,もともと Unix 系の OS で開発されたプログラムは,Program Files ディレクトリのようにディレクトリ名に空白が入っている場所にインストールすると, うまく動作しないことがあります.
XLisp-Stat はいくつかのサイトから入手できます. XLisp-Stat の製作者である Luke Tierney 氏のホームページから, 配布元の情報が得られます. http://www.stat.uiowa.edu/~luke/xls/xlsinfo/xlsinfo.html
オリジナルの ftp サイトは, ftp://ftp.stat.umn.edu/pub/xlispstat です.School of Statistics, University of Minnesota の ソフトウェア・アーカイブ(下図)から, Xlisp-Stat の Download というリンクをクリックすると, オリジナルの ftp サイトにたどりつきます.
ftp サイトにたどりついたら current というディレクトリへのリンクをクリックします. 下の図では日本語が表示されていますが, 環境によっては英語で表示がされます. current というリンクはいずれにしろ見えますから,問題ないでしょう.
下の図は表示が英語になっている例です.
Current をクリックする前に, RAEADME を開いてみてもいいです. 次のように,ディレクトリの構成が簡単に説明されています.
This directory contains the source and binary distributions of XLISP-STAT. current -- link to the current "official" release Alpha -- more recent but less tested releases accessing-files.txt -- notes on accessing files by ftp doc -- some documentation files other -- miscellaneous (short courses, etc.) old -- previous releases. Luke Tierney School of Statistics University of Minnesota luke@stat.umn.edu
Current ディレクトリへと移動したら, 次に mswin というディレクトリへのリンクをクリックします. このディレクトリには Windows 版の XLisp-Stat が収められています.
WXLS32ZP.EXE および WXLSZIP.EXE という実行ファイルが, XLisp-Stat のパッケージです.WXLS32ZP.EXE は32ビット版, WXLSZIP.EXE は16ビット版です. ここでは WXLS32ZP.EXE をダウンロードすることにします.
WXLS32ZP.EXE へのリンクをクリックする前に, README をクリックすると以下のようなインストールのインストラクションを読むことができます.
This is the MS Windows distribution of XLISP-STAT Release 3. The 16-bit version is in the file WXLSZIP.EXE. The 32-bit vesion is in WXLS32ZP.EXE. Some information on the changes since Release 2 is given in the file pub/xlispstat/doc/changes.ps. To install either distribution, go through the following steps: 1. Transfer the self-extracting ZIP archive file to a suitable location. This is a binary file -- be sure to use binary mode when transfering it. 2. Create a directory on your hard disk where you want the executables and support files to live, CD to this directory, and copy the archive to this directory. 3. Extract the archive using the command ARCHIVE.EXE -d where WRCHIVE is either WXLSZIP of WXLS32ZP. Be SURE to use the -d flage -- this preserves the directory structure. 4. Execute DIR\APP config where APP is either WXLS.EXE or WXLS32.EXE and DIR is the directory containing the extracted executable. This will install a wxls.ini file and add group and program items to the program manager. (At least that is what it does under 3.1 and NT 3.51 -- I assume something similar happens with Win95 and NT 4.0.) You may also wish to add associations for .lsp, .fsl, or .wks files. If you want to include any of the 'Autoload' files in the startup workspace, load them into a running application and do (save-workspace "newxlisp.wks") This creates a new workspace file and exits. You can then double click on this workspace, or you can rename it 'xlisp.wks' to make it the default startup workspace (keep a copy of the original one). To load the compiler, load the file 'cmpload.fsl' in the 'Autoload' folder. The lisp sources can be compiled by loading the 'cmpsys.lsp' file in the 'Lisp Sources' folder. This will recompile any .lsp file whose corresponding .fsl file does not esist or has an earlier modification date. The files xlsx.c and xlsx.h are for use in creating DLL's. This implementation is fairly close to the Macintosh implementation; the file wxls.tex contains a more complete description of the differences between this version and other versions. Source code for the Windows version is included in the UNIX distribution. The 32-bit version requires Win32s to run on Windows 3.1. Win32s is available from ftp://ftp.microsoft.com/Softlib/Mslfiles/PW1118.EXE. A minimal runtime system needs the application and the initial workspace, 'xlisp.wks', and any of the files in the Autoload folder you want to use. The application, initial workspace, and Autoload folder must be placed in the same folder. You can add the 'xlisp.hlp' file if you want documentation to be available. Luke Tierney School of Statistics University of Minnesota Minneapolis, MN 55455 luke@stat.umn.edu
WXLS32ZP.EXE という実行ファイルへのリンクをクリックしてください. このファイルを保存を選択します.
ファイルを保存する場所は,XLisp-Stat のためにあらかじめ作成しておいたフォルダです. ここでは C ドライブ直下の xlisp フォルダに WXLS32ZP.EXE をダウンロードします.
ダウンロードを完了します.
WXLS32ZP.EXE というファイルがダウンロードされました.
Windows のコマンドプロンプトを立ち上げます. スタートメニューからは, 「すべてのプログラム」-->「アクセサリ」--> 「コマンドプロンプト」とたどります.
コマンドプロンプトが立ちあがったら, XLisp-Stat のプログラムをダウンロードしたフォルダに移動します. たとえば,C ドライブ直下の xlisp ディレクトリに移動するならば, cd \xlisp と入力して Enter キーを押します.
WXLS32ZP.EXE は圧縮されたファイルですので, これを展開します. コマンドプロンプトで WXLS32ZP.EXE -d と入力して Enter キーを押してください.
ファイルが展開されます.
xlisp フォルダの中は以下のようになります.
コンフィギュレーションと呼ばれる操作を行います. WXLS32 config と入力して Enter キーを押します.
XLisp-Stat が起動し,セットアップ画面が表示されます. このまま [Configure and Quit] ボタンを押してください.
Do you really want to quit? と尋ねるウィンドウが現れたら, [OK] ボタンを押します.
コマンドプロンプトを終了させます. exit と入力して Enter キーを押します.
これで XLisp-Stat のインストールは完了です. スタートメニューから起動してください.
XLisp-Stat が起動します.