tcl expect 安装

来源:互联网 发布:mina 收不到数据 编辑:程序博客网 时间:2024/05/19 03:42

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

所以网上的方法版本匹配都不对!!

试验多次发现是版本问题很窝火。

原创粉丝点击