maildrop installation issues


Unable to find rfc822.a

Simple.. Go up one directory. You are still in the maildrop/maildrop directory that the intsall doc put you in

/usr/bin/ld: cannot find -lmysqlclient

1) First, make sure you have installed. Use locate libmysqlclieent:

[root@gadgetwiz maildrop-1.3.7]# locate libmysqlclient

Notice that I have both the .so and .a files installed in /usr/lib/mysql. If you didn't have them, then you will probably either need to install the mysql-devel RPM or recompile the source. In my case, I had it installed, so I had to check the /etc/ file.

Basically, the file maintains a list of all the paths the linker searches when seeking a .so or . file. If the /usr/lib and /usr/lib/mysql path aren't there, you could consider adding them. Once the're added, you will want to tun "ldconfig -v" to populate the /var/run/ file.

In my case, I just added the "-L/usr/lib/mysql" option to the -lmysql line in my make file. The -L tells the linker to check that directory first.

Here is a diff for the maildrop/configure script.

echo 'diff -Nur maildrop/configure.orig maildrop/configure
--- maildrop/configure.orig     Sat Feb 28 08:51:57 2004
+++ maildrop/configure  Sat Feb 28 08:50:48 2004
@@ -3720,7 +3720,7 @@

-LIBMYSQL="-lmysqlclient -lz"
+LIBMYSQL="-lmysqlclient -lz -L/usr/lib/mysql"

 saveLIBS="$LIBS"' | patch -p0