From: Rich Leblanc Date: 2010-07-22T09:47:35+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 15:03:41 +0900 > Message-ID: <58fb92a4ff1539ea5a3f5b64595f1bf7@ruby-forum.com> >> Actually I would like to get this fixed on my Unix machine too. I'm >> getting this same error. I have tcl8.5.8 installed and Ruby 1.8.7. How >> can I get it to work on Unix? Maybe if I get that working I'll > > Please tell me the directories of your Tcl/Tk headers/libraries, and > configure options which you gave at first step of compiling. > Probably, ext/tk/extconf.rb outputs some messages about searching and > testing Tcl/Tk libraries (and {tcl,tk}Config.sh) during make steps. > Please tell me the messages, too. On a FreeBSD 8.0 machine I went to \usr\ports\lang\tcl85 and as root ran; make install clean. This installed tcl 8.5. On command line if I run; tclsh85 I get tcl prompt. Then if i type; info patchlevel it shows; 8.5.8. Now I go to usr\ports\lang\ruby18 and run; make install clean. This installs ruby 1.8. If I type; ruby -v at the command line I get: ruby 1.8.7 (2009-12-24 patchlevel 248) [amd64-freebsd8] If I start irb and type; require 'tk' I get the error: LoadError: no such file to load -- tk Everything is in default locations. Ruby and tcl executables are in \usr\local\bin. I don't know where the installer put anything else. -- Posted via http://www.ruby-forum.com/.