|
|
| version 1.2, 2002/02/08 11:14:06 | version 1.6, 2013/07/07 16:25:48 |
|---|---|
| Line 1 | Line 1 |
| 0.Assuming your perform your builds in $D directory | 1.What is the process to compile Parser3 PgSQL driver? |
| and suggested subdirectories. | |
| 1.What is the process to compile Parser3 PgSQL driver? | PgSQL client software and include files should be installed. |
| Parser3 sources should be in ../../parser3 directory. | |
| Execute the following commands: | |
| You sould have PgSQL client software and include files installed. | ./configure --prefix=$HOME/parser3install --silent |
| As most UNIX libraries Parser3 PgSQL driver follows the "standard": | |
| cd $D/parser3project | |
| gunzip -c parser3pgsql-x.x.tar.gz | tar xvf - | |
| cd parser3pgsql-x.x | |
| ./configure --prefix=/usr/local | |
| make | make |
| In case configure could not find directory with your | |
| In case configure could not find directory with your | |
| PgSQL client software include files, specify it with | PgSQL client software include files, specify it with |
| --with-pgsql-inc[=DIR] DIR is the PgSQL includes directory | --with-pgsql-inc=DIR DIR is the PgSQL includes directory |
| option. | option. |
| 2.What is the process to install Parser3 PgSQL driver? | 2.What is the process to install Parser3 PgSQL driver? |
| make install | make install |
| Installation layout: | Installation layout: |
| $prefix/lib/ | $prefix/lib/ |
| libparser3pgsql.x -- driver's dynamic library | libparser3pgsql.so -- driver's dynamic library |
| NOTE: | NOTE: |
| make sure that Parser3 main configuration file, | make sure that Parser3 main configuration file, $prefix/bin/auto.p |
| $prefix/etc/parser3.conf | has in $SQL[...] configuration section a tab-delimited line like this: |
| has in $SQL[...] configuration section a line like this: | |
| pgsql $sqldriversdir/libparser3pgsql.so /usr/local/pgsql/lib/libpq.so | pgsql $sqldriversdir/libparser3pgsql.so libpq.so |
| which specifies | which specifies |
| protocol name | protocol name |
| Line 40 pgsql $sqldriversdir/libparser3pgsql.so | Line 32 pgsql $sqldriversdir/libparser3pgsql.so |
| path to PgSQL client 'libpq' dynamic library | path to PgSQL client 'libpq' dynamic library |
| [you sould have it from from your PgSQL client installation] | [you sould have it from from your PgSQL client installation] |
| Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | |
| $Id$ | $Id$ |