On 05/21/2012 02:47 PM, Szunomár Péter wrote:
Even if i start the createlang.exe pltclu or run the CREATE LANGUAGE pltclu sql command from PgAdmin, i receive the following error message:

================
ERROR: could not load library "C:/Program Files/PostgreSQL/9.1/lib/pltcl.dll": unknown error 126
********** Error **********
ERROR: could not load library "C:/Program Files/PostgreSQL/9.1/lib/pltcl.dll": unknown error 126
SQL state: 58P01
================

A dependency of pltcl is missing, like a TCL runtime. Windows gives the same "cannot find library" error (126) when the library its self is missing as when a library it depends on is missing.

If you can't figure out what's missing, use Dependency Walker (http://dependencywalker.com) to open pltcl.dll and see what it's looking for.

--
Craig Ringer

Reply via email to