安装PL /红宝石这是为了使Postgres的发展功能嵌入红宝石代码, 但我一直无法建立它。对PostgreSQL 8.3
诚如通过 http://www.robbyonrails.com/articles/2005/08/22/installing-untrusted-pl-ruby-for-postgresql
我试图建立从我整理出来的最新版本ftp://moulon.inra.fr/pub/ruby/
提供(plruby-0.5.3.tar.gz)所需的plruby.so在我的本地的Postgres设置的调整和调用到:
ruby extconf.rb --with-pgsql-include=/usr/postgresql-8.3.4/include/server --enable-shared --disable-conversion --with-pgsql-version=83
我试着对变化的相当数量,但它似乎并没有能够成功地使 的'conftest.c' 文件
它这样说:
checking for catalog/pg_proc.h... yes
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
而且这里是我结束了我的mkmf.log
have_header: checking for catalog/pg_proc.h... -------------------- yes
"gcc -E -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -I/usr/postgresql-8.3.4/include/server -g -O2 -fPIC conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <catalog/pg_proc.h>
/* end */
当我手动运行一行gcc,它说没有'conftest.c'(并且没有,但是应该生成 )。
'uname -a' ... gives
Linux vdev1 2.6.18.8-xen #2 SMP Thu May 8 11:52:29 PDT 2008 x86_64 x86_64 x86_64 GNU/Linux
'ruby -v' ... gives
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]
任何帮助和/或建议,将不胜感激。
迈克 - Berrow