Aaron Stone wrote:
On Sat, 2006-05-13 at 15:12 -0400, Matthew T. O'Connor wrote:

[EMAIL PROTECTED] dbmail]$ /usr/local/dbmail/sbin/dbmail-util -a
Opening connection to database...
dbmodule.c,db_load_driver: cannot load libpgsql.so: cannot open shared object file: No such file or directory

I assume that part of the problem is that I ran configure with --prefix=/usr/local/dbmail

We don't look there yet. In {db|auth|sort}module.c, the search paths are
hardcoded as:
                "modules/.libs",
                "/usr/lib/dbmail",
                "/usr/local/lib/dbmail",
Adding PREFIX and PREFIX/lib would definitely be a good idea! I'll take
a look at how to get the PREFIX path into the config.h.

I think that is a good idea, however let me add 2 more cents.

I reran the make install as root and now it works. I guess the make install script does an ldconfig command that doesn't work when run as my user dbmail, but does work when run as user root. So please add those two directories as you mentioned, but the problems isn't quite as bad as I had thought.

BTW, I think a reasonable goal for any OSS project is to be installable without root access. This makes it much easier to test. At this point with the exception of binding to a privlidged port, and the ldconfig command, I think DBMail can already do this. The privlidged port isn't really a problem because you can always run the server on a non-privlidged port.

Reply via email to