Re: compiling mod_auth_pgsql - Mailing list pgsql-general

From Thomas Beutin
Subject Re: compiling mod_auth_pgsql
Date
Msg-id 20030522095907.A17303@laokoon.bug.net
Whole thread Raw
In response to compiling mod_auth_pgsql  (cliff@cliffmeyers.com)
List pgsql-general
Hi Cliff,

On Wed, May 21, 2003 at 10:18:21AM -0700, cliff@cliffmeyers.com wrote:
> Hello,
>
> I posted this message to pgsql-interfaces but I figured I'd post to the general
> list as well.
>
> I'm trying to install mod_auth_pgsql 0.9.12 with apache 1.3.27 on Red Hat Linux
> 8.  I've followed the directions for installation to the letter, but the apache
> 'make' command dies on me, complaining that it can't find libpq.so.3 even though
> it exists in my /usr/local/pgsql/lib directory.  What's strange is that it dies
> during part of the apache 'make' that seems to have nothing to do with the
> mod_auth_pgsql module.
>
> Does anyone have any tips or pointers on this?  I previously installed this
> statically into apache with success, but apparently the documentation I wrote
> then missed something since it won't work now :-(  Below is the output from the
> configure and make commands I used to build the module and apache.  Any help
> would be greatly appreciated - thanks.
1. Compile and install apache and postgres as usual
2. make sure the path to the postgres libs is in /etc/ld.so.config and do an
   /sbin/ldconfig after adding it (reboot should do this automagically)
   Or You have to set the LD_LIBRARY_PATH in every shell where You want to
   use applications linked against the shared postgres libs
3. Compile mod_auth_pgsql (respect Your paths to apache and postgres!):
    /usr/local/apache/bin/apxs  -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq -o mod_auth_pgsql.so -c *.c
4. Install mod_auth_pgsql (respect Your paths to apache!):
    /usr/local/apache/bin/apxs -i -a -n auth_pgsql mod_auth_pgsql.so

Hope this helps.

Greetings,
-tb
--
Thomas Beutin                             tb@laokoon.IN-Berlin.DE
Beam me up, Scotty. There is no intelligent live down in Redmond.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: VACUUM and transaction ID wraparound
Next
From: "scott.marlowe"
Date:
Subject: Re: caching query results