linux上安装tcl、tk、expect

 

tcl

[user@localhost 桌面]$ ls tcl8.5.9-src.tar.gz
tcl8.5.9-src.tar.gz
[user@localhost 桌面]$ su
密码:
[root@localhost 桌面]# cp tcl8.5.9-src.tar.gz /usr/local/src/
[root@localhost 桌面]# cd /usr/local/src/
[root@localhost src]# tar -zxvf tcl8.5.9-src.tar.gz
[root@localhost src]# cd tcl8.5.9/
[root@localhost tcl8.5.9]# cd unix/
[root@localhost unix]# ./configure --prefix=/usr/local/tcl/ --enable-shared
[root@localhost unix]# make
[root@localhost unix]# make install
[root@localhost unix]# /usr/local/tcl/bin/tclsh8.5
% exit
[root@localhost unix]#

tk

[user@localhost 桌面]$ ls tk8.5.9-src.tar.gz
tk8.5.9-src.tar.gz
[user@localhost 桌面]$ su
密码:
[root@localhost 桌面]# cp tk8.5.9-src.tar.gz /usr/local/src/
[root@localhost 桌面]# cd /usr/local/src/
[root@localhost src]# tar -zxvf tk8.5.9-src.tar.gz
[root@localhost src]# cd tk8.5.9/
[root@localhost tk8.5.9]# cd unix/
[root@localhost unix]# ./configure --prefix=/usr/local/tk/ --with-tcl=/usr/local/tcl/lib/ --enable-shared
[root@localhost unix]# make
[root@localhost unix]# make install
[root@localhost unix]# /usr/local/tk/bin/wish8.5
/usr/local/tk/bin/wish8.5: error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory
[root@localhost unix]# ln -s /usr/local/tcl/lib/libtcl8.5.so /usr/local/tk/lib/libtcl8.5.so
[root@localhost unix]# /usr/local/tk/bin/wish8.5
% exit
[root@localhost unix]#

expect

[user@localhost 桌面]$ ls expect-5.44.1.15.tar.gz
expect-5.44.1.15.tar.gz
[user@localhost 桌面]$ su
密码:
[root@localhost 桌面]# cp expect-5.44.1.15.tar.gz /usr/local/src/
[root@localhost 桌面]# cd /usr/local/src/
[root@localhost src]# tar -zxvf expect-5.44.1.15.tar.gz
[root@localhost src]# cd expect-5.44.1.15/
[root@localhost expect-5.44.1.15]# ./configure --prefix=/usr/local/expect/
--withtcl=/usr/local/tcl/lib/ --with-tclinclude=/usr/local/src/tcl8.5.9/generic/
--withtk=/usr/local/tk/lib/ --with-tkinclude=/usr/local/src/tk8.5.9/generic/ --enable-shared
[root@localhost expect-5.44.1.15]# make
[root@localhost expect-5.44.1.15]# make install
[root@localhost expect-5.44.1.15]# /usr/local/tcl/bin/expect
expect1.1> exit
[root@localhost expect-5.44.1.15]#
[root@localhost expect-5.44.1.15]# /usr/local/tcl/bin/expectk
/usr/local/tcl/bin/expectk: error while loading shared libraries: libtk8.5.so: cannot open shared object file: No such file or directory
[root@localhost expect-5.44.1.15]# ln -s /usr/local/tk/lib/libtk8.5.so
/usr/local/tcl/lib/libtk8.5.so
[root@localhost expect-5.44.1.15]# /usr/local/tcl/bin/expectk
Application initialization failed: version conflict for package "Tcl": have 8.5.9, need exactly 8.5
% exit
[root@localhost expect-5.44.1.15]#



http://downloads.activestate.com/ActivePerl/releases/5.12.2.1202/ActivePerl-5.12.2.1202-i686-linux-glibc-2.3.6-293621.tar.gz

http://downloads.activestate.com/ActivePython/releases/2.6.6.15/ActivePython-2.6.6.15-linux-x86.tar.gz

http://downloads.activestate.com/ActiveTcl/releases/8.5.9.0/ActiveTcl8.5.9.0.293667-linux-ix86-threaded.tar.gz

http://www.cpan.org/src/5.0/perl-5.12.2.tar.gz

http://www.python.org/ftp/python/2.7/Python-2.7.tgz

http://prdownloads.sourceforge.net/tcl/tcl8.5.9-src.tar.gz

http://prdownloads.sourceforge.net/tcl/tk8.5.9-src.tar.gz

http://sourceforge.net/projects/expect/files/Expect/5.44.1.15/expect-5.44.1.15.tar.bz2/download

http://sourceforge.net/projects/wxwindows/files/2.9.1/wxWidgets-2.9.1.tar.bz2/download


  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值