From: Hidetoshi NAGAI Date: 2010-07-21T14:30:42+09:00 Subject: Re: LoadError: no such file to load -- tk From: Rich Leblanc Subject: Re: LoadError: no such file to load -- tk Date: Wed, 21 Jul 2010 11:16:27 +0900 Message-ID: <4842dd6277bcb8f01e6d56fdc7123ef2@ruby-forum.com> > This is getting more and more confusing. How do I check check > consistency of architecture between Ruby and Tcl/Tk if it's 32 bit or > 64? I thought 32 bit apps can run on a 64 bit machine. This tutorial is # Because I'm not familiar with development on Windows, the following # may be wrong. On Ruby/Tk, Ruby links tcltklib.so and links dynamic link librariies of Tcl/Tk. If Ruby's core is a 32bit binary and Tcl/Tk DLLs are 64bit binaries, Ruby cannot link Tcl/Tk DLLs. It's not about OS, but consistency between an executable and DLLs. Which version of ActiveTcl did you download? If its platform is "Windows (x86)", it is 32bit version of Tcl/Tk. But if you download "Windows (64-bit, x64)", then 64bit. How does "ruby.exe -v" describe? If it includes "x86-mswin32", then it is a 32bit executable. Else if includes "x64-mswin64", then a 64bit. If your Tcl/Tk is 64bit and your compiler can make 64bit binaries, please try "--target=x64-mswin64" configure option. If your compiler can make 32bit binaries only, please download and install a 32bit version of ActiveTcl. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) Department of Artificial Intelligence, Kyushu Institute of Technology