From: Gavin Kistner Date: 2004-02-26T01:49:48+09:00 Subject: Re: Further failures Ara.T.Howard wrote: > On Wed, 25 Feb 2004, Gavin Kistner wrote: >>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) Indeed, the problem (as I realized when I inspected the error messages and thought a bit) was that the pgsql commands weren't in my path. When I put them there, I got new errors with 'make test', which I believe had to do with the fact that it was invoking psql without a database name, which was thus looking for a database named 'root' (the user I was running as). I decided that make test was full of bunk, and went on and installed the compiled code. I'm happy to report, PL/Ruby is working nicely :) So, in summary (for the record/archives): In order to build PL/Ruby 0.3.8 to work with PostgreSQL 7.4.1 (the standard .tar.gz source, not some special package for OS X) I had to change one line in plruby.h from #include "server/utils/array.h" to #include "utils/array.h" After that, I needed (not unexpectedly) to explicitly specify the paths to pgsql (built version and source includes): ruby extconf.rb --with-pgsql-dir=/usr/local/pgsql --with-pgsql-srcinc=/usr/local/src/postgresql-7.4.1/src/include After the above, making and installing the code worked: make make install And I just had to ignore the fact that make test didn't work at all. -- (-, /\ \/ / /\/