#これは、expect インストール方法のメモです。
大まかな手順は下記のとおり。
1. tcl-8.4.14 のインストール
2. expect-5.43.1のインストール
まずは、tclをインストール手順。
http://www.tcl.tk/software/tcltk/ から tcl8.4.14-src.tar.gz を入手。
解凍およびインストール
tar -zxf tcl8.4.14-src.tar.gz
cd tcl8.4.14/
cd unix
./configure --enable-shared --prefix=/usr
make
make install
シンボリックを作成する
cd /usr/bin
ln -s tclsh8.4 tclsh
次に、expectのインストール手順。
http://expect.nist.gov/ から expect.tar.gz を入手。
解凍およびインストール(ただしtclを展開したディレクトリで行なうこと)
tar -zxf expect.tar.gz
cd expect-5.43/
./configure --prefix=/usr
上記configureで、「tclInt.hファイルがみつからへん!(エラー)」と怒られた場合は、次のようにオプションをつけてコンフィグ(パスは適時置き換えてください)
./configure --with-tclinclude=/usr/local/src/tcl8.4.14/generic --prefix=/usr
それでも、「tcldbgcf.hが・・・」って言われたら(makeしたときに言われる)、
./configure --with-tclinclude=/usr/local/src/tcl8.4.14/generic --prefix=/usr --with-tcl=/usr/lib
make
make install
make clean
/sbin/ldconfig
これで完了。
大まかな手順は下記のとおり。
1. tcl-8.4.14 のインストール
2. expect-5.43.1のインストール
まずは、tclをインストール手順。
http://www.tcl.tk/software/tcltk/ から tcl8.4.14-src.tar.gz を入手。
解凍およびインストール
tar -zxf tcl8.4.14-src.tar.gz
cd tcl8.4.14/
cd unix
./configure --enable-shared --prefix=/usr
make
make install
シンボリックを作成する
cd /usr/bin
ln -s tclsh8.4 tclsh
次に、expectのインストール手順。
http://expect.nist.gov/ から expect.tar.gz を入手。
解凍およびインストール(ただしtclを展開したディレクトリで行なうこと)
tar -zxf expect.tar.gz
cd expect-5.43/
./configure --prefix=/usr
上記configureで、「tclInt.hファイルがみつからへん!(エラー)」と怒られた場合は、次のようにオプションをつけてコンフィグ(パスは適時置き換えてください)
./configure --with-tclinclude=/usr/local/src/tcl8.4.14/generic --prefix=/usr
それでも、「tcldbgcf.hが・・・」って言われたら(makeしたときに言われる)、
./configure --with-tclinclude=/usr/local/src/tcl8.4.14/generic --prefix=/usr --with-tcl=/usr/lib
make
make install
make clean
/sbin/ldconfig
これで完了。