gpt4 book ai didi

postgresql - Error creating PLTCL language on binary windows(7) 64位企业数据库安装

转载 作者:行者123 更新时间:2023-11-29 12:00:27 26 4
gpt4 key购买 nike

我刚刚从 Enterprise DB 安装了最新的 Postgres 二进制文件并尝试安装一些用户语言,但失败并出现以下错误:

postgres=# create language pltcl;
ERROR: could not load library "C:/Software/PostgreSQL/9.2/lib/pltcl.dll": The specified module could not be found.

postgres=# create language plperl;
ERROR: could not load library "C:/Software/PostgreSQL/9.2/lib/plperl.dll": %1 is not a valid Win32 application.

postgres=# select version();
PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 64-bit

我已经确认在上述位置有 dll,所以我想知道 $libdir 是否需要有 M$ windows 反斜杠而不是 unix 正斜杠?但我真的不知道。

如果有任何关于如何修复的想法,我将不胜感激。我要尝试 32 位安装。谢谢!

谢谢!

最佳答案

Windows 引发错误“找不到指定的模块” 当它真正意味着“指定的模块或者,递归地,它需要加载的任何 DLL 找不到"

在这种情况下,您可能没有安装合适的 TCL 运行时。查看安装程序文档以查看它需要什么 TCL 版本。

%1 不是有效的 Win32 应用程序 很可能是因为您有 32 位 PostgreSQL 试图加载 64 位 perl DLL,反之亦然。系统环境中 PATH 中第一个的 Perl 需要与 PostgreSQL 具有相同的体系结构,即均为 32 位或均为 64 位。

在这两种情况下,使用 Dependency Walker (depends.exe ) 来自 http://dependencywalker.com/ .. 此工具将帮助您识别任何缺失或不匹配的库。

关于postgresql - Error creating PLTCL language on binary windows(7) 64位企业数据库安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17496299/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com