Re: compiling mod_auth_pgsql

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: cliff(at)cliffmeyers(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: compiling mod_auth_pgsql
Date: 2003-05-22 09:26:46
Message-ID: 20030522092645.GA25916@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Look at this:
> gen_test_char.o -L/usr/local/pgsql/lib -lpq -lm -lcrypt -lexpat
> ./gen_test_char >test_char.h
> ./gen_test_char: error while loading shared libraries: libpq.so.3: cannot open
> shared object file: No such file or directory

It's building a program called gen_test_char and then running it. While
compiling it suggested finding that lib in /usr/local/pgsql/lib. That
worked, so you program compiled and linked fine.

But when you run it, the loader doesn't know where to find that library and
looks in the list in /etc/ld.so.conf. So you have a few options:

1. Add /usr/local/pgsql/lib to your ld.so.conf and run ldconfig
2. Soft/hard or copy the library to /usr/local/lib (if that's listed)
or even /usr/lib of you prefer.

Don't forget ldconfig.

Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> "the West won the world not by the superiority of its ideas or values or
> religion but rather by its superiority in applying organized violence.
> Westerners often forget this fact, non-Westerners never do."
> - Samuel P. Huntington

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2003-05-22 09:27:21 Re: compiling mod_auth_pgsql
Previous Message Richard Huxton 2003-05-22 09:24:08 Re: "IN" statement causing execution cancel?