Hi,

Daniel Berger writes:
 > I get "libdbi: Failed to load driver: /usr/local/lib/dbd/libpgsql.so".  
 > Yet, I clearly have it:
 > 
 > [EMAIL PROTECTED]:/usr/local/lib/dbd> pwd
 > /usr/local/lib/dbd
 > [EMAIL PROTECTED]:/usr/local/lib/dbd> ls -l
 > total 120
 > -rw-r--r--  1 root root 23794 2005-10-29 16:59 libdbdpgsql.a
 > -rwxr-xr-x  1 root root   831 2005-10-29 16:59 libdbdpgsql.la
 > -rwxr-xr-x  1 root root 30507 2005-10-29 16:59 libdbdpgsql.so
 > -rw-r--r--  1 root root 21374 2005-07-23 16:12 libpgsql.a
 > -rwxr-xr-x  1 root root   823 2005-07-23 16:12 libpgsql.la
 > -rwxr-xr-x  1 root root 29325 2005-07-23 16:12 libpgsql.so
 > 

libdbi complains about libpgsql.so because it is most likely a 0.7.x
driver (note the date) which won't work with libdbi 0.8.x. It does not
complain about libdbdpgsql.so which apparently loads without a
hitch. The drivers were renamed in 0.8.1 to avoid name clashes in
Debian which packages each driver individually. You can safely remove
the libpgsql.* files.

 > PS -   I'm also curious why this sent an error to STDERR.
 > 

dbi_main.c defines

static int complain = 1;

close to the top. I didn't know either, but there's an undocumented
libdbi API function which can modify this value:

int dbi_set_verbosity(int verbosity);

Call this function with verbosity set to 0 to switch off error output
on stderr before calling dbi_initialize(). At least that's what I
guess from the sources.

regards,
Markus

-- 
Markus Hoenicka
[EMAIL PROTECTED]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
libdbi-users mailing list
libdbi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-users

Reply via email to