From: Rich Leblanc Date: 2010-07-21T11:16:27+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 03:50:10 +0900 > Message-ID: >> > To reproduce it go into your ext/tk library and run extconf.rb (and >> > nmake I guess). It should fail. >> >> Reproduce what? I don't understand. > > ext/tk/extconf.rb creates Makefile for tcltklilb.so (core library of > Ruby/Tk), when it finds Tcl/Tk libraries (see ext/tk/README.tcltklib). > If it fails to find proper Tcl/Tk libraries, it creates a dummy > Makefile (it can make nothing). So, before retrying to configure > (run ext/tk/extconf.rb), please remove such dummy Makefile. > By dummy Makefile do you mean an empty one? There is a Makefile but there is stuff in it. I deleted it and tried to recompile but now having problems with the Microsoft tools this tutorial wants me to use. > If ext/tk/extconf.rb cannot create an available Makefile although you > give the paths of Tcl/Tk libraries, please check consistency of > architecture between Ruby and Tcl/Tk. > When 32bit <=> 64bit or 64bit <=> 32bit, probably ext/tk/extconf.rb > doesn't select the Tcl/Tk libraries to make tcltklib.so. 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 really awful. It gives me nothing but problems every step of the way. Is there some better way to learn Ruby/tk? And why does he want me to use 1.8.x and not 1.9.x? -- Posted via http://www.ruby-forum.com/.