文章目录
1.tcl编译
step1 :
下载tcl: https://nchc.dl.sourceforge.net/project/tcl/Tcl/8.6.8/tcl868-src.zip
step2: 解压到/opt/expect/tcl8.6.8目录下
step3: 进入 /opt/expect/tcl8.6.8/unix目录下,运行 配置脚本:
- ./configure --prefix=/opt/expect/tcl
step4 :编译
- make
step5:编译安装: - make install
然后拷贝文件:cp tclUnixPort.h …/generic/
2 .expect 编译
step1 :
下载expect : https://nchc.dl.sourceforge.net/project/expect/Expect/5.45.3/expect5.45.3.tar.gz
step2: 解压到/opt/expect/expect目录下
step3: 进入/opt/expect/expect目录下,运行 配置脚本:
./configure --with-tcl=/opt/expect/tcl/lib/ --with-tclinclude=/opt/expect/tcl8.6.8/generic/ --build=arm-linux --pref