[Mono-list] Failure to load library libpq.so

Rodrigo Moya rodrigo@ximian.com
26 Aug 2002 00:45:18 +0200

On Sat, 2002-08-24 at 19:39, Miguel de Icaza wrote:
> Hello,
> > > I'm getting a Failed to load library libpq.so error when I try to run
> > > DbClient.cs. Do I need to set a class path or something.
> > > 
> > you need to have postgres libraries installed, which is where libpq.so
> > comes from.
> I had to use this ~/.mono/config file to get it to work:
> <configuration>
> 	<dllmap dll="pq" target="libpq.so.2" />
> </configuration>
hmm, so the problem seems to be that mono on windows tries to open the
.dll file for the function, whereas you've got .so.n.

Am I right? If so, would it be the best fix to have the runtime try to
open .dll on windows, and if not found, try to open the .so?

Rodrigo Moya <rodrigo@ximian.com>