Strawberry Perl 5.12 作为 PostgreSQL 9.0 在 win32 上的 plperl?
有人对这个组合感到幸运吗?
到目前为止,我已经收到消息:
ERROR: could not load library "C:/Program Files/PostgreSQL/9.0/lib/plperl.dll":
The specified module could not be found.
...通过制作 perl512.dll 的副本并将其重命名为 perl510.dll 来离开。现在我在安装一些我需要的模块时遇到问题,所以我无法判断它是否因此而无法工作,或者因为我拥有的 PostgreSQL 二进制文件是为 Perl 5.10 设计的,因为错误消息现在是:
WARNING: Use of uninitialized value $prolog in concatenation (.) or string at -e line 25.
CONTEXT: compilation of PL/Perl function "my_function"
WARNING: Use of uninitialized value $src in concatenation (.) or string at -e line 25.
CONTEXT: compilation of PL/Perl function "my_function"
ERROR: didn't get a CODE reference from compiling function "my_function"
CONTEXT: compilation of PL/Perl function "my_function"
Has anyone had luck with this combination?
So far I've gotten the message:
ERROR: could not load library "C:/Program Files/PostgreSQL/9.0/lib/plperl.dll":
The specified module could not be found.
...to go away by making a copy of perl512.dll and renaming it perl510.dll. Now I'm having issues installing some modules I need, so I can't tell if it's not working because of that, or because the PostgreSQL binary I have is designed for Perl 5.10, because the error message is now:
WARNING: Use of uninitialized value $prolog in concatenation (.) or string at -e line 25.
CONTEXT: compilation of PL/Perl function "my_function"
WARNING: Use of uninitialized value $src in concatenation (.) or string at -e line 25.
CONTEXT: compilation of PL/Perl function "my_function"
ERROR: didn't get a CODE reference from compiling function "my_function"
CONTEXT: compilation of PL/Perl function "my_function"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为它需要重新编译。我尝试从我的函数中删除模块依赖项,只是使其成为一个简单的返回语句,但它仍然有相同的错误。
即草莓 Perl 5.10 而不是 5.12。
I think it would need a recompile. I tried removing the module dependency from my function, just making it a simple return statement, and it still had the same error.
That, or Strawberry Perl 5.10 instead of 5.12.