On Wed, 25 Feb 2004, Gavin Kistner wrote:

> Gavin Kistner wrote:
> > 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?
> 
> Further information:
> I tried editing plruby.h to point to the array.h file I saw:
> 
> 
> #if PG_PL_VERSION >= 74
> - #include "server/utils/array.h"
> + #include "utils/array.h"
> #endif
> 
> And hey! It compiled OK!
> But then...awww...it fails just about every test with 'make test'.

  export PATH=/usr/local/pgsql/bin:$PATH

this is probably why it can't fine the commands (assuming they are there)

you may also want to

  export LD_LIBRARY_PATH=/usr/local/pgsql/lib:$LD_LIBRARY_PATH

actually - i'd do a 

  export LD_RUN_PATH=/usr/local/pgsql/lib

__before__ compiling and.

do a man ld

HTH.

-a


> 
> Output follows.
> 
> 
> [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
> cc -dynamic -bundle -undefined suppress -flat_namespace 
> -L'/usr/local/lib' -L'/usr/local/pgsql/lib' -o plruby.bundle plruby.o 
> -lpq -lruby-static  -ldl -lobjc
> 
> [Slim:local/src/plruby-0.3.8] root# make test
> (cd test/plt ; sh ./runtest 74)
> **** Destroy old database plruby_test ****
> ./runtest: line 9: dropdb: command not found
> **** Create test database plruby_test ****
> ./runtest: line 15: createdb: command not found
> **** Create procedural language plruby ****
> ./runtest: line 19: psql: command not found
> **** Create tables, functions and triggers ****
> ./runtest: line 22: psql: command not found
> **** Running test queries ****
>      Tests faild - look at diffs between
>      test.expected.74 and test.out
> (cd test/plp ; sh ./runtest 74)
> **** Destroy old database plruby_test ****
> ./runtest: line 9: dropdb: command not found
> **** Create test database plruby_test ****
> ./runtest: line 15: createdb: command not found
> **** Create procedural language plruby ****
> ./runtest: line 19: psql: command not found
> **** Create tables, functions and triggers ****
> ./runtest: line 22: psql: command not found
> **** Running test queries ****
>      Tests faild - look at diffs between
>      test.expected.74 and test.out
> (cd test/range; sh ./runtest 74)
> **** Destroy old database plruby_test ****
> ./runtest: line 8: dropdb: command not found
> **** Create test database plruby_test ****
> ./runtest: line 11: createdb: command not found
> **** Create procedural language plruby ****
> ./runtest: line 15: psql: command not found
> **** Running test queries ****
>      Tests faild - look at diffs between
>      test.expected.74 and test.out
> [Slim:local/src/plruby-0.3.8] root# make install
> install -c -p -m 0755 plruby.bundle 
> /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin
> [Slim:local/src/plruby-0.3.8] root# make test
> (cd test/plt ; sh ./runtest 74)
> **** Destroy old database plruby_test ****
> ./runtest: line 9: dropdb: command not found
> **** Create test database plruby_test ****
> ./runtest: line 15: createdb: command not found
> **** Create procedural language plruby ****
> ./runtest: line 19: psql: command not found
> **** Create tables, functions and triggers ****
> ./runtest: line 22: psql: command not found
> **** Running test queries ****
>      Tests faild - look at diffs between
>      test.expected.74 and test.out
> (cd test/plp ; sh ./runtest 74)
> **** Destroy old database plruby_test ****
> ./runtest: line 9: dropdb: command not found
> **** Create test database plruby_test ****
> ./runtest: line 15: createdb: command not found
> **** Create procedural language plruby ****
> ./runtest: line 19: psql: command not found
> **** Create tables, functions and triggers ****
> ./runtest: line 22: psql: command not found
> **** Running test queries ****
>      Tests faild - look at diffs between
>      test.expected.74 and test.out
> (cd test/range; sh ./runtest 74)
> **** Destroy old database plruby_test ****
> ./runtest: line 8: dropdb: command not found
> **** Create test database plruby_test ****
> ./runtest: line 11: createdb: command not found
> **** Create procedural language plruby ****
> ./runtest: line 15: psql: command not found
> **** Running test queries ****
>      Tests faild - look at diffs between
>      test.expected.74 and test.out
> 
> 	
> 
> 

-- 
===============================================================================
| EMAIL   :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE   :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| URL     :: http://www.ngdc.noaa.gov/stp/
| TRY     :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done 
===============================================================================