From: Luis Lavena Date: 2010-05-06T21:39:22+09:00 Subject: [ruby-core:30055] Re: [Bug #3248] extension 'tk' is finding tclConfig.sh and tkConfig.sh incorrectly On Thu, May 6, 2010 at 7:09 AM, Hidetoshi NAGAI wrote: > >> Search tclConfig.sh and tkConfig.sh.......................................................... >> Valid tclConfig.sh and tkConfig.sh are found in ["c:/Users/Luis/Tools/Git/lib"] >> Use [tclConfig.sh,tkConfig.sh] == ['c:/Users/Luis/Tools/Git/lib/tclConfig.sh','c:/Users/Luis/Tools/Git/lib/tkConfig.sh'] >> >> Git/lib is *not* in the PATH, so why extconf.rb is finding it? It shouldn't > > Because your PATH includes "c:/Users/Luis/Tools/Git/cmd". > > extconf.rb of tk searchs tclConfig.sh/tkConfig.sh from > "/../lib" directory. > It supposes the relation of "/bin" and "/lib", > e.g. "/usr/opt/bin" and "/usr/opt/lib". > But, on your environment, the supposition resulted in improper files. > Yes, and that supposition will result in problems for other users, not just me. > Can you temporaly remove the path from PATH, > or give --with-tclConfig-file/--with-tkConfig-file option? Yes, I can temporary disable it, but I see that will not solve the issue for average user in the long run. For example, if you checkout Ruby using Git (from official mirror) then the revision parsing functionality on 1.9.2 will not work, as Git will not be in the PATH. I don't have tk or tcl in my system, so "--with-*Config" sounds incorrectly, what should I provide to that option? empty value or a path that doesn't exist just to avoid the issue? Thank you. -- 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�ry