My Ruby install on Mandriva2006 (from, iirc, the Mandriva package(s))
to be borked. One symptom: require ‘tk’ in irb returns “LoadError: No
file to load – tk …”
Is anybody here using Ruby and TK successfully on Mandriva2006? If so,
did you install it (RPMdrake?) and which packages did you have to
IIRC, I simply (during the Mandriva2006 install (not an update)) made
that Ruby was selected–I don’t remember if there was one or more
related to Ruby.
I’m pretty sure I have TK installed (or at least TCL) because running
tclsh or wish gives me a prompt (wish on a popup). However, looking
in /usr/lib/ruby/1.8/ I don’t see a tk.rb package (I do see multi-tk.rb
My goal is to use TkHTML in some Ruby programs, so after I get TK
want to download and get TkHTML working.
I’m wondering what my best way forward is, I can see a few options:
uninstall Ruby (and related packages) and try reinstalling it (from
Mandriva2006 rpms) --I have a vague recollection that, during the
Mandriva2006 install, it couldn’t find some packages or files–maybe
those were related to Ruby or TK, and maybe I need to download new
the Ruby related files before trying to install.
This machine used to run Mandrake 10 (or 10.1, I forget atm).
did install Ruby successfully, iirc, perhaps from source at that time,
other places on my disk, I have some of the files I might need to make
TK work. (For example, I have tk.rb in directory:
I could try simply copying it (and maybe all files in that directory)
to /usr/lib/ruby/1.8/. (I might do that soon, just to see what happens,
I thought I’d try asking for advice first–I don’t want to make things
but, on the other hand, if I decide to do a complete uninstall and
this shouldn’t hurt anything.
- the version of Ruby that comes with Mandrake2006 is 1.8.2–maybe
better to update to 1.8.4 by installing from source? (As mentioned
managed that once, but I always regard a source installation as a hit or
proposition–I’m never confident that it will work, and if it doesn’t,
also left with no clue about how to proceed (sometimes I can tell that
missing a “dependancy” and can identify what I need, sometimes I can’t.
If it happens that I need Ruby 1.8.4 (or .3) to work with TkHTML, then I
definitely want to go that route (or find a binary RPM (for Ruby 1.8.4)
Mandriva2006–I googled a few weeks ago and didn’t find one).
- Maybe I have some of the Ruby paths set wrong (well, I didn’t
them–but maybe I could to pick up the tk.rb file in its current
Any help appreciated!