From: Rich Leblanc Date: 2010-07-22T01:08:05+09:00 Subject: Re: LoadError: no such file to load -- tk Hidetoshi NAGAI wrote: > 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. > I have installed ActiveTcl 8.5.8.2 (64-bit) > 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. > Ah-ha, it says; ruby 1.8.7 (2009-12-24 patchlevel 248) [i386-mswin32_100] That's it! > 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. I installed the 32 bit versions but now having errors with the Microsoft compiler. So dealing with that now. -- Posted via http://www.ruby-forum.com/.