On 1/2/06, Gerardo Santana Gez Garrido <gerardo.santana / gmail.com> wrote:
> 2006/1/2, Mark Volkmann <r.mark.volkmann / gmail.com>:
> > On 1/1/06, Gerardo Santana Gez Garrido <gerardo.santana / gmail.com> wrote:
> > > 2005/12/31, Mark Volkmann <r.mark.volkmann / gmail.com>:
> > > > I have some Ruby code that uses Tk that works fine under Windows.
> > > > However, when I try to run it under Linux with Ruby 1.8.4 installed I
> > > > get "no such file to load -- tcltklib".
> > > >
> > > > Do I have to take steps to install tcltk? I don't recall having to do
> > > > that under Windows, but perhaps the one-click installer did that for
> > > > me. If I need to do this, a pointer to a web page that explains how
> > > > would be much appreciated.
> > >
> > > I had the same problem. Hard to find a solution on the web, until I
> > > look into my own ruby source tree:
> > >
> > > http://santanatechnotes.blogspot.com/2005/12/ruby-and-tk-on-solaris.html
> > >
> > > Basically:
> > >
> > > # cd ext/tcltklib
> > > # ruby extconf.rb --with-tcl-include=/usr/sfw/include
> >
> > This command runs without error, but I don't have a /usr/sfw directory.
> >
> > > # make && make install
> >
> > This command says "Nothing to be done for 'all'".
> >
> > > That was for Solaris, but will work on Linux (just change the path to
> > > your Tcl/Tk headers and libraries). Don't forget to read the README
> > > file.
> >
> > This seems to be the root of my problem. I don't know where the Tcl/Tk
> > headers and libraries are located on my machine. Can you tell me the
> > name of one of the files so I can search for it? I tried running "find
> > . -name '*tcltk*' -print" from / and didn't find any libraries.
>
>
> At then end of the output of extconf.rb says it couldn't find some
> files. One of them in tcl.h, look for it.

My Fedora Core 4 system doesn't have tcl.h anywhere, but I do have
libtcl8.4.so in /usr/lib.

--
R. Mark Volkmann
Partner, Object Computing, Inc.