Re: compiling mod_auth_pgsql

From: Thomas Beutin <tyrone(at)laokoon(dot)IN-Berlin(dot)DE>
To: cliff(at)cliffmeyers(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: compiling mod_auth_pgsql
Date: 2003-05-22 07:59:07
Message-ID: 20030522095907.A17303@laokoon.bug.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Cliff,

On Wed, May 21, 2003 at 10:18:21AM -0700, cliff(at)cliffmeyers(dot)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(at)laokoon(dot)IN-Berlin(dot)DE
Beam me up, Scotty. There is no intelligent live down in Redmond.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Darko Prenosil 2003-05-22 08:39:30 Re: caching query results
Previous Message Nigel J. Andrews 2003-05-22 07:07:26 Re: caching query results