在Linux下安装TCL/TK,可以有编译源代码的方式安装,也可以有直接通过二进制压缩包进行解压缩安装,本文采用比较快捷的方式,用二进制包去安装,具体通过源代码配置编译安装的话,可以参考这个地方:http://www.tcl.tk/doc/howto/compile.html 这个页面详细讲解了如何去配置编译安装TCL/TK。不过现在有ActiveTcl,直接编译好的二进制包,那么我们使用起来更方便点,我就采用这种方式了。下面讲解步骤:
1:下载ActiveTcl的安装包,版本:8.5.11.1
下载地址(下载其中一个即可):官方地址->http://www.activestate.com/activetcl/downloads
我的skydriver地址->
下载之后,我们进行解压即可,命令如下:
[root@pact TCL]# tar zxf ActiveTcl8.5.11.1.295590-linux-ix86-threaded.tar.gz #解压
[root@pact TCL]# cd ActiveTcl8.5.11.1.295590-linux-ix86-threaded#进入目录
2:我们查看README的文档,里面讲有具体安装的过程:
[root@pact ActiveTcl8.5.11.1.295590-linux-ix86-threaded]# vi README-8.5-thread.txt
然后我们可以看到有这么一段:
Installing ActiveTcl 8.5.11.1
_____________________________________________________________________________
To install ActiveTcl 8.5.11.1, run the "install.sh" script found in the
same directory as this document.
To uninstall ActiveTcl, run the "uninstall" application found in the
directory "lib/ppm/log/activetcl8.5".
所以,我们如果要安装,只需要直接执行install.sh即可,命令如下:
./install.sh
然后下面会有提示诸如安装路径什么的,我全部默认,如果你想更改,可以自行更改,这样一直到最后,就会提示安装成功。
3:在Linux下的代码解释执行
在Linux下与windows下大同小异,可以参考这篇博文:
http://www.jyguagua.com/?p=427
文章的脚注信息由WordPress的wp-posturl插件自动生成
 
                 微信扫一扫,打赏作者吧~
微信扫一扫,打赏作者吧~ 
	![[整理][转载]win下网卡抓包发包库Npcap使用](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2023/08/demo_1-1024x711.jpg&w=280&h=210&zc=1)
![[转载]基础数据char,int,double,string是线程安全的吗?](http://www.jyguagua.com/wp-content/themes/begin/img/random/12.jpg)
![[已解决]nc命令报错 close: Bad file descriptor](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2022/03/Snipaste_2022-03-18_20-16-48.png&w=280&h=210&zc=1)
![[整理]how to run flask with pyqt5](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2021/03/pyqt_flask.png&w=280&h=210&zc=1)
