#ifdef __CYGWIN__ pathv[pathc - 2] = installLib2; This adding is useful for X:/cygwin/bin/tclsh.exe to include "X:/cygwin/usr/share/tcl8.4", which is the place on cygwin where to find init.tcl. Unfortunately, it is of no help to: X:/cygwin/usr/local/pgsql/bin/pgtclsh.exe X:/cygwin/usr/local/pgsql/bin/postgres.exe because it leads to: X:/cygwin/usr/local/pgsql/usr/share/tcl8.4 A way to solve this problem is to define the TCL_LIBRARY environment variable. I think that there is a better way to accommodate all applications on cygwin, without the need to define TCL_LIBRARY, by moving the use of installLib2 to AppendDllPath(). As the dll is X:/cygwin/bin/tcl84.dll, AppendDllPath() would return: X:/cygwin/usr/share/tcl8.4 whatever the application executable path is. I don't have the means to compile/build/test the tcl package from source, but my proposed patch generated with: $ diff -u tclWinInit.c ../../../../tmp/tclWinInit.c is attached. __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus