From: Nop Nop Date: 2008-04-23T21:24:04+09:00 Subject: Re: How to enable Tk.Tile for ruby? Hello all, Finally i did it, hoooray! Special thanks to Hidetoshi Nagai for his assistance! Now I'll describe briefly how to build ruby 1.9 for Windows (win32) and enable Tk 8.5 and Tile support. 1. Check if the last ActiveTcl distribution is installed (c:\tcl). 2. Get the gnuwin32 utils (at least bison and sed are needed, but I've installed the whole package. If you will install the whole batch of gnuwin32 utils then bear in mind that you have to remove the "find" utility. There is something wrong with it). 3. Get the latest ruby1.8 installer and install it. 4. Install MSVC++ or whatever. 5. Open console. 6.If you've installed MS Visual Studio then find vsvars32.bat file and execute it. It will set the variables, and you can check that everything is ok by typing "nmake --version" 7. %PATH% should also point to the gnuwin32\bin, ruby18\bin, tcl\bin %LIB% should also point to tcl\lib %LIBPATH% should also point to tcl\bin %INCLUDE% should also point to tcl\include Set this variables accurately! For instance: >set INCLUDE=c:\tcl\include;%INCLUDE% 8. Go to your ruby source and perform the commands: >win32\configure.bat --prefix=c:\ruby19 >nmake >nmake install 9. When everything is ok you may test your distribution as following: a) open console b) set variables set PATH=c:\ruby19\bin;%PATH% set LIBPATH=c:\ruby19\bin;c:\tcl\bin;%LIBPATH% c) run the following script: require 'tk' require 'tkextlib/tile' root = TkRoot.new { title "Ex1" } Tk::Tile::Button.new(root) { text "Ok" command proc { print "Hello, World!"; exit } pack('side'=>'left', 'padx'=>10, 'pady'=>10) } Tk.mainloop() It should show you the Tk/Tile button. -- Posted via http://www.ruby-forum.com/.