On Mon, Jun 6, 2011 at 1:24 AM, Urabe Shyouhei <shyouhei / ruby-lang.org> wro=
te:
>>
>> Hello, I've copied "as-is" both extconf.rb and config_list.in to
>> ruby_1_8_7 branch and tcl/tk compiled and works perfectly.
>
> Good to hear that.
>
>> Would you mind dealing with the backport process? I believe Yugui is
>> still trying to apply the massive change to ruby_1_9_2 branch so I
>> think Urabe Shyouhei will have the same problem.
>
> I see. =A0I will release 1.8.7 with this issue fixed. =A0To do so I might
> ask you to check 1.8.7 branch on occasions. =A0Thanks in advance.
>

I've tried latest ruby_1_8_7 branch (r32129) and while tk, tcltk and
friends compile successfully, we are having problems to make
TkVarAccess to read our pre-set TCL_LIBRARY variable.

In RubyInstaller, we preset that variable to
File.join(RbConfig::CONFIG['libdir'], 'tcltk', 'tcl8.5'), so we avoid
polluting ruby/lib with all tcl&tk files.

This works perfectly under 1.9.2 and trunk, but fails for 1.8.7:

$ ruby -e "require 'tk'"
C:/ruby-1.8.7-p348-i386-mingw32/lib/ruby/1.8/tk.rb:1133:in
`initialize': Can't find a usable init.tcl in the following
directories:  (RuntimeError)
    C:/ruby-1.8.7-p348-i386-mingw32/lib/tcl8.5
C:/ruby-1.8.7-p348-i386-mingw32/lib/tcl8.5 C:/lib/tcl8.5
C:/ruby-1.8.7-p348-i386-mingw32/library C:/library
C:/Users/Luis/Projects/oss/oneclick/rubyi
        from C:/ruby-1.8.7-p348-i386-mingw32/lib/ruby/1.8/tk.rb:1133:in `ne=
w'
        from C:/ruby-1.8.7-p348-i386-mingw32/lib/ruby/1.8/tk.rb:1133
        from -e:1:in `require'
        from -e:1

It seems that is ignoring TCL_LIBRARY environment variable?

--=20
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exup=E9ry