Forum OpenACS Q&A: Re: Problems Loading Postgres Drivers

Collapse
Posted by Rod Cap on
OK... I download nspostgres-4.0beta1, untar it an do make but I get:
**
** POSTGRES variable not set.
** nspostgres.so will not be built.
**
** Usage: make POSTGRES=/path/to/postgresql
**        make POSTGRES=LSB
**
** Usage: make install POSTGRES=/path/to/postgresql INST=/path/to/aolserver
**        make install POSTGRES=LSB INST=/path/to/aolserver
**
** OpenACS users should also set ACS=1
**
Although, I check in the /usr/local/pgsql/lib/ and there is no libpq.so.2 only the libpq.so.3...... by the way the postgres version is 7.3.3.
Collapse
Posted by Benjamin Bytheway on
did you do a

`make POSTGRES=/usr/local/pgsql ACS=1 INST=/usr/local/aolserver` ?

(with variance allowed in the paths)

Collapse
Posted by bill kellerman on
rod,

i gave you the two commands that you need to compile the pg driver above.  just change POSTGRES and NSHOME to wherever your postgresql and aolserver are located.

the instructions that you just cut and paste also tell you:

"Usage: make install POSTGRES=/path/to/postgresql INST=/path/to/aolserver"

just add ACS=1 to the end of that.

Collapse
Posted by bill kellerman on
to correct myself...

% make ACS=1 POSTGRES=/path/to/postgresql INST=/path/to/aolserver
% sudo make install POSTGRES=/path/to/postgresql INST=/path/to/aolserver