From: Rich Leblanc <rl001 / pacbell.net> Subject: Re: LoadError: no such file to load -- tk Date: Wed, 21 Jul 2010 03:50:10 +0900 Message-ID: <c3dd9cbcf8eadc1284f794414063b294 / ruby-forum.com> > > 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. 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. -- Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp) Department of Artificial Intelligence, Kyushu Institute of Technology