在 Windows 上安装 PL/Ruby for PostgreSQL
我在 Windows XP 上安装 PL/Ruby for PostgreSQL 8.4 时遇到问题
PostgreSQL 8.4 已安装且工作正常 Ruby-186-27 已安装并且工作正常 我安装了 MinGW 并且使用 MSYS 作为命令行 shell 我已经下载了plruby-0.5.3并解压。
我的 PostreSQL 位于 C:\Program Files\PostgreSQL\8.4 我已经在 MSYS fstab 文件中创建了一条记录 c:/Progra~1/PostgreSQL/8.4 /usr/local/pgsql
我尝试按如下方式调用 makefile:
从 plruby-0.5.3 目录运行以下 命令 ruby extconf.rb --with-pgsql-dir=/usr/local/pgsql
我也尝试过运行 --with-pgsql-include=/usr/local/pgsql/include --with-pgsql-include=/usr/local/pgsql/include/server 还有上述的变体,即使用 MSDOS 命令,使用环境变量传递文件路径,使用 MS DOS 样式目录名
我总是得到的响应是:
have_header:检查目录/pg_proc.h... ------ --------------------- 不
,然后类似的事情 “cl -nologo -E -I.-I”c:/Program Files/Ruby/lib/ruby/1.8/i386-mswin32" -I.-Ic:/Progra~1/PostgreSQL/8.4/include/server -MD -Zi -O2b2xg- -G6 conftest.c -P" 检查的程序是: /* 开始 / 1.#include / end */
我每次都得到几乎相同的输出,我已经检查过,pg_proc.h 文件确实位于 c:/Progra~1/PostgreSQL/8.4/include/server 子目录中 我已经尝试在谷歌上
搜索答案,似乎很多人在 Windows 上编译 Ruby 共享库时遇到了此类问题,其他人在创建 PL/Ruby 时遇到了问题,但我没有在任何地方都找到了有关如何解决此问题的答案。
预先感谢您能够提供的任何帮助。
I have a problem installing PL/Ruby for PostgreSQL 8.4 on Windows XP
PostgreSQL 8.4 is installed and working OK
Ruby-186-27 is installed and working OK
I have MinGW installed and I'm using MSYS as the command line shell
I have downloaded plruby-0.5.3 and unzipped.
My PostreSQL is in C:\Program Files\PostgreSQL\8.4
I've created a record in MSYS fstab file
c:/Progra~1/PostgreSQL/8.4 /usr/local/pgsql
I've tried calling the makefile as follows:
Running the following from the plruby-0.5.3 directory
ruby extconf.rb --with-pgsql-dir=/usr/local/pgsql
I've also tried running with
--with-pgsql-include=/usr/local/pgsql/include
--with-pgsql-include=/usr/local/pgsql/include/server
and also variations on the above i.e. using MSDOS Commands, using environment variables to pass file path, using MS DOS style directory names
The response I always get is:
have_header: checking for catalog/pg_proc.h... --------------------------- no
and then something like
"cl -nologo -E -I. -I"c:/Program Files/Ruby/lib/ruby/1.8/i386-mswin32" -I. -Ic:/Progra~1/PostgreSQL/8.4/include/server -MD -Zi -O2b2xg- -G6 conftest.c -P"
checked program was:
/* begin /
1. #include
/ end */
I'm getting pretty much the same output each time, I've checked and the pg_proc.h file is indeed in c:/Progra~1/PostgreSQL/8.4/include/server in sub-directory catalog
I've tried googling for an answer and it seems that quite a few people have had a problem with compiling Ruby shared libary on Windows in general with this type of issue, and others had issues creating PL/Ruby but I haven't found an answer anywhere on how to resolve this issue.
Thanks in advance for any help you may be able to give.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您正在尝试使用 MSVC 编译器运行基于 autoconf 的东西。 最后我检查了一下,autoconf 不支持这一点。 我认为 autoconf 需要 mingw 和 gcc,而不是 MSVC。
That looks like you're trying to run something based on autoconf using the MSVC compiler. Last I checked, that was not supported by autoconf. I think autoconf requires mingw and gcc, not MSVC.