From: Luis Lavena <luislavena / gmail.com>
Subject: [ruby-core:37212] Re: 1.8.7 release next month
Date: Sat, 18 Jun 2011 09:04:07 +0900
Message-ID: <BANLkTinBM67Fagd8=ph+9zAgWSwqsFsN8w / mail.gmail.com>
> $ 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 `new'
>         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?

I can't generate the problem.
"ruby -r tk -e 'p Tk.tk_call("info", "library")'" prints the value of
TCL_LIBRARY environment variable.
Is the env var really exported?
When not do "export TCL_LIBRARY" on the terminal, the value of the env
var has no effect.
-- 
Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)
Department of Artificial Intelligence, Kyushu Institute of Technology