G
Gavin Kistner
I have Ruby 1.8.1, PostgreSQL 7.4.1, mod_ruby 1.1.2, eRuby 1.0.5,
postgres 0.7.1, and Apache 2.0.48 installed and playing nicely together.
One final piece...I want PL/Ruby in my PGSQL. But it's not liking me:
[Slim:local/src/plruby-0.3.8] root# ruby extconf.rb
--with-pgsql-dir=/usr/local/pgsql
--with-pgsql-srcinc=/usr/local/src/postgresql-7.4.1/src/include/
checking for ruby_init() in -lruby-static... yes
checking for catalog/pg_proc.h... yes
checking for PQsetdbLogin() in -lpq... yes
creating Makefile
[Slim:local/src/plruby-0.3.8] root# make
gcc -fno-common -I/usr/local/src/postgresql-7.4.1/src/include/
-I/usr/local/pgsql/include/postgresql/server -DPG_PL_VERSION=74 -I.
-I/usr/local/lib/ruby/1.8/powerpc-darwin
-I/usr/local/lib/ruby/1.8/powerpc-darwin -I. -DHAVE_CATALOG_PG_PROC_H
-I/usr/local/pgsql/include -c plruby.c
In file included from plruby.c:47:
plruby.h:27:32: server/utils/array.h: No such file or directory
plruby.c: In function `return_array_type':
plruby.c:894: error: `ArrayType' undeclared (first use in this function)
plruby.c:894: error: (Each undeclared identifier is reported only once
plruby.c:894: error: for each function it appears in.)
plruby.c:894: error: `array' undeclared (first use in this function)
plruby.c: In function `pl_func_handler':
plruby.c:1380: error: `ArrayType' undeclared (first use in this function)
plruby.c:1380: error: `array' undeclared (first use in this function)
plruby.c:1384: error: parse error before ')' token
plruby.c:1386: warning: assignment makes pointer from integer without a cast
plruby.c:1391: warning: assignment makes pointer from integer without a cast
make: *** [plruby.o] Error 1
[Slim:local/src/plruby-0.3.8] root# uname -a
Darwin Slim.local 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 16:20:23
PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC Power Macintosh powerpc
[Slim:local/src/plruby-0.3.8] root# /usr/local/pgsql/bin/postgres --version
postgres (PostgreSQL) 7.4.1
[Slim:local/src/plruby-0.3.8] root# ruby --version
ruby 1.8.1 (2004-02-17) [powerpc-darwin]
I *do* see /src/include/utils/array.h ... did the src hierarchy for
PGSQL change and the make file needs to be updated to match?
Any thoughts on how I can get this built?
postgres 0.7.1, and Apache 2.0.48 installed and playing nicely together.
One final piece...I want PL/Ruby in my PGSQL. But it's not liking me:
[Slim:local/src/plruby-0.3.8] root# ruby extconf.rb
--with-pgsql-dir=/usr/local/pgsql
--with-pgsql-srcinc=/usr/local/src/postgresql-7.4.1/src/include/
checking for ruby_init() in -lruby-static... yes
checking for catalog/pg_proc.h... yes
checking for PQsetdbLogin() in -lpq... yes
creating Makefile
[Slim:local/src/plruby-0.3.8] root# make
gcc -fno-common -I/usr/local/src/postgresql-7.4.1/src/include/
-I/usr/local/pgsql/include/postgresql/server -DPG_PL_VERSION=74 -I.
-I/usr/local/lib/ruby/1.8/powerpc-darwin
-I/usr/local/lib/ruby/1.8/powerpc-darwin -I. -DHAVE_CATALOG_PG_PROC_H
-I/usr/local/pgsql/include -c plruby.c
In file included from plruby.c:47:
plruby.h:27:32: server/utils/array.h: No such file or directory
plruby.c: In function `return_array_type':
plruby.c:894: error: `ArrayType' undeclared (first use in this function)
plruby.c:894: error: (Each undeclared identifier is reported only once
plruby.c:894: error: for each function it appears in.)
plruby.c:894: error: `array' undeclared (first use in this function)
plruby.c: In function `pl_func_handler':
plruby.c:1380: error: `ArrayType' undeclared (first use in this function)
plruby.c:1380: error: `array' undeclared (first use in this function)
plruby.c:1384: error: parse error before ')' token
plruby.c:1386: warning: assignment makes pointer from integer without a cast
plruby.c:1391: warning: assignment makes pointer from integer without a cast
make: *** [plruby.o] Error 1
[Slim:local/src/plruby-0.3.8] root# uname -a
Darwin Slim.local 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 16:20:23
PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC Power Macintosh powerpc
[Slim:local/src/plruby-0.3.8] root# /usr/local/pgsql/bin/postgres --version
postgres (PostgreSQL) 7.4.1
[Slim:local/src/plruby-0.3.8] root# ruby --version
ruby 1.8.1 (2004-02-17) [powerpc-darwin]
I *do* see /src/include/utils/array.h ... did the src hierarchy for
PGSQL change and the make file needs to be updated to match?
Any thoughts on how I can get this built?