天天看點

tcl expect 安裝

TNN的,整整一天裝這個工具 不負責任的網絡方法真又愛又恨,用不了還讓人瞎折騰,各種問題一一解決,由于我總是亂試,搞壞自己的虛拟機,搞壞公司的伺服器。

具體方法

1.tcl安裝

安裝tcl8.4.19

cd tcl8.4.19/unix

./configure options

make

make test

sudo make install

2.安裝except

安裝except-5.43版本

cp tcl8.4.19/unix/*.h tcl8.4.19/generic/

修改檔案exp_inter.c 添加 #include "tclInt.h"

./configure --prefix=/usr/expect --with-tcl=/usr/local/lib --with-x=no --with-tclinclude=tcl8.4.19/generic

make

sudo make instal

3.hardware編譯

我是為了編譯TI android hardware/ti/ti81xx/

更改install_mc_dsp_components.sh

EXPECT_BIN=/usr/expect/bin/expect

就可以運作腳本了

注意:

1.不要安裝tcl8.5 版本,與except不相容 會報undefined reference to `Tcl_ReturnObjCmd'

2.不要安裝except5.39 即使打了patch也不行!

3.如果已經裝過8.5 編譯except會報錯-ltcl8.5,修改Makefile 将裡面的ltcl8.5 都改成8.4

是以網上的方法版本比對都不對!!

試驗多次發現是版本問題很窩火。