LoadError: no such file to load -- tk

H

Hidetoshi NAGAI

From: Rich Leblanc <[email protected]>
Subject: Re: LoadError: no such file to load -- tk
Date: Fri, 23 Jul 2010 12:36:07 +0900
Message-ID: said:
Here's all the output from the terminal:

Ah, I'm sorry. It may be ambiguous.

During compiling *Ruby*, make-process creates each library under
<ruby-source>/ext directory (ext/tk is one of them).
Then, the process calls "miniruby extconf.rb".

<ruby-source>/ext/tk/extconf.rb search Tcl/Tk libraries.
And then, it outputs messages about search steps.
I need the messages.
It gives me hints about why cannot find available libraries.
 
R

Rich Leblanc

Hidetoshi said:
From: Rich Leblanc <[email protected]>
Subject: Re: LoadError: no such file to load -- tk
Date: Thu, 22 Jul 2010 09:47:35 +0900


I need the messages at ext/tk step of "make".


Previous output was from Tcl. I found something useful at the end of
Ruby install:

====
Note that some of the standard libraries are provided as separate
ports since they require extra dependencies:

converters/ruby-iconv iconv module

databases/ruby-gdbm: GDBM module

x11-toolkits/ruby-tk: Tcl/Tk modules
japanese/ruby-tk: Tcl/Tk modules for Japanized Tcl/Tk

lang/ruby-mode.el: Emacs lisp modules

Install them as occasion demands.


I need to install x11-toolkits/ruby-tk. I will try now.
 
R

Rich Leblanc

Martin said:
Could you write up a step-by-step set of instructions? Would be useful
for the next person.

martin


To install Ruby/Tk on FreeBSD 8.0 Unix I did these three commands to
install the three components (as root):

1. /usr/ports/lang/tcl85# make install clean #Installs
Tcl/tk
2. /usr/ports/lang/ruby18# make install clean #Installs Ruby
1.8
3. /usr/ports/x11-toolkits/ruby-tk# make install clean #Installs Ruby
tk "stuff" I think (extensions, libraries?).

Very easy, I just installed the three components and it worked, no
hacking required.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top