windows tcl/tk安装(塔卡)

本文介绍了在Windows上安装Tcl/Tk的步骤,包括使用ActiveTcl进行安装和编译Ruby以使用Tcl/Tk。首先,从ActiveState官网下载并安装ActiveTcl 8.5.x版本。接着,为了在Ruby中使用Tk,需要下载Ruby源代码,设置环境变量,然后使用Visual C++编译并安装。最后,确保安装ActivePerl 5.10或更高版本以获得与Tk 8.5兼容的环境。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在Windows中,最简单的方法的Tcl / Tk的到你的机器是要安装“ActiveTcl”从ActiveState,其中包括TCL,传统知识,加上其他扩展库数分布。

In your web browser, go to www.activestate.com , and follow along the links to download the standard version of ActiveTcl for Windows.在Web浏览器,转到www.activestate.com,沿链接遵循下载ActiveTcl标准版本的Windows。 Make sure you're downloading an 8.5.x version, not an older 8.4.x version.确保您下载一个8.5.x版本,而不是旧的8.4.x版本。

Run the installer, and follow along.运行安装程序,并按照沿。 You'll end up with a fresh install of ActiveTcl, usually located in C:\Tcl.你会拥有一个新的安装ActiveTcl,通常位于C:\ Tcl的。 From a DOS command prompt, or the Start Menu's "Run..."从DOS命令提示符,或开始菜单的“运行...” command, you should then be able to run a Tcl/Tk 8.5 shell via:命令,你应该能够运行Tcl / Tk的8.5外壳通过:

% C:\Tcl\bin\wish85 %ç:\的Tcl \本\ wish85

 

This should pop up a small window titled "wish85", which will contain your application.这应该弹出一个小窗口,标题为“wish85”,其中将包含您的应用程序。 A second, larger window titled "Console" is where you can type in Tcl/Tk commands.第二,更大的窗口标题为“控制台”在这里,您可以输入Tcl / Tk的命令。 Type "exit" in the console window to exit. You may also want to add C:\Tcl\bin to your PATH environment variable.键入“exit在控制台窗口中退出”。您可能还需要添加C:\ Tcl的\ bin到你的PATH环境变量。

RubyTk is a binding that links against an existing but separate Tk library. RubyTk是有约束力的联系,对现有的但独立的塔卡库。 So, to get the latest version of Tk for Ruby, we're going to have to do two things, first download the latest 8.5.x Tcl/Tk version from ActiveState, and then compile Ruby to use it.因此,要获取最新塔卡的Ruby版本,我们将不得不做两件事,首先下载最新的8.5.x Tcl / Tk的从ActiveState版本,然后编译Ruby的使用它。

Install ActiveTcl安装ActiveTcl

The "ActiveTcl" distribution from ActiveState contains the latest Tk, as well as the latest version of Tcl (which Ruby's Tk bindings use internally to talk to Tk).在“ActiveTcl”从ActiveState分配包含最新的塔卡,以及Tcl的最新版本(Ruby的内部使用塔卡绑定交谈塔卡)。 In your web browser, go to www.activestate.com , and follow along the links to download the standard version of ActiveTcl for Windows.在Web浏览器,转到

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值