在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浏览器,转到