The Ruby part was for 1.9, and those install instructions no longer work.Īfter a couple of hours of beating my head against a wall, I finallyįigured out how to get everything working. Up to date with current versions of Ruby, Tk, etc. I’m working through a site update and as part of that bringing everything Using Tk from various languages, Ruby being one of them. Hello, I’m the author of the site which provides a tutorial on On Sun, Sep 6, 2020, 1:36 PM Mark Roseman wrote: One of the best names in software tickle tock The second line will return the version of Tk that you're running, which should be something like "8.6.9". To verify the version of Tk, start up your newly installed copy of 'irb' (which would have been installed in C:\Ruby26\bin), and type: If you're running a shell via command prompt you'll need to restart it to see those new additions. In Windows 10, you'll find a button labelled "Environment Variables." in the "Advanced" tab of "System Properties". This can be done in the Windows control panel (or search for "system environment variables" from the taskbar). The best way to specify where to find them is to set the TCL_LIBRARY and TK_LIBRARY system environment variables. Second, the Tcl and Tk shared libraries will look for a bunch of initialization and other scripts which were installed as part of ActiveTcl. Make a copy of them somewhere Ruby can find them, e.g. We'll need to do a couple of things to fix that.įirst, Ruby needs to find the tcl86t.dll and tk86t.dll shared libraries. If you try to use Tk from Ruby, it will complain that it can't find the underlying Tcl/Tk libraries. Next, you'll need to download and install Ruby's Tk module, which is packaged as a Ruby gem. Download and run the installer, which will install everything into the directory you choose, e.g. You'll end up with a fresh install of ActiveTcl in C:\ActiveTcl. Note that you will need to create an account with ActiveState (no cost) to download it. Make sure you're downloading an 8.6.x version. In your web browser, go to and follow along the links to download the Community Edition of ActiveTcl for Windows. On Windows, the easiest way to get Tcl/Tk onto your machine is to install the "ActiveTcl" distribution from ActiveState, which includes Tcl, Tk, plus a number of other extension libraries. Unfortunately, Tk was removed from the Ruby standard library (stdlib) in version 2.4, and made available as an external gem. Luckily, it is now only mildly painful, thanks to the good folks behind RubyInstaller for Windows.įYI: The one-click installer used to include everything you needed to run Ruby/Tk, including the underlying Tcl/Tk libraries. In the distant past, installing it on your Windows machine used to be pure hell, involving installing a separate version of Tcl/Tk, downloading a development environment like Visual Studio, downloading the Ruby source code, carefully compiling Ruby. I’d appreciate any feedback or suggestions for improvement before I fully incorporate them into the next TkDocs update. I’m including below a draft of the new installation instructions. The last time I updated the Ruby part was for 1.9, and those install instructions no longer work.Īfter a couple of hours of beating my head against a wall, I finally figured out how to get everything working. I’m working through a site update and as part of that bringing everything up to date with current versions of Ruby, Tk, etc. This issue is discussed at but it didn't help me, because I don't have a Frameworks folder in my ~/Library directory, and in the /Library folder, I can find the framework but the uninstall script is not there.Hello, I’m the author of the site which provides a tutorial on using Tk from various languages, Ruby being one of them. I went to uninstall ActiveTcl 8.5, but I can't find the uninstall script. Objc: Class TKWindow is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and /Library/Frameworks/Tk.framework/Versions/8.6/Tk. Objc: Class TKContentView is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and /Library/Frameworks/Tk.framework/Versions/8.6/Tk. Objc: Class TKMenu is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and /Library/Frameworks/Tk.framework/Versions/8.6/Tk. Objc: Class TKApplication is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and /Library/Frameworks/Tk.framework/Versions/8.6/Tk. One program I've written, which runs fine on a linux machine crashes when I try to run it with the following messages: I just installed activeTcl 8.6.3 on my Mac mini running Yosemite, version 10.10.1, in order to be able to use Tkinter with python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |