安裝總結(jié)
需要兩個(gè)安裝程序
tcl8.4.11
expect-5.43
首先安裝tcl8.4.11
Tcl 的 configure 腳本有一個(gè)語法錯(cuò)誤,下面的命令可以糾正它:
sed -i "s/relid'/relid/" configure
編譯tcl
cd unix
./configure --prefix=/tools
make
make install
需要的內(nèi)容都拷貝到/tools目錄,
!!!!安裝完畢完先不要刪除源碼,以后還要用到
將頭文件目錄export到環(huán)境變量,
cd ..
export TCLPATH='pwd'
不曉得為什么我在configure時(shí)還是報(bào)找不到頭文件的錯(cuò)誤
建一個(gè)必須的符號鏈接
ln -sv tclsh8.4 /tools/bin/tclsh
好了,下面就是編譯expect了
我用的是
./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no
如果報(bào)
checking for Tcl private headers... checking for tclInt.h... no
configure: error: Can't find Tcl private headers
再添加一個(gè)頭文件目錄參數(shù)
?--with-tclinclude=../tcl8.4.11/generic
腳本運(yùn)行正常,進(jìn)行執(zhí)行make進(jìn)行編譯
make
編譯過程中未出現(xiàn)錯(cuò)誤,執(zhí)行安裝:
make install