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 libmysqlclient.so installed. Use locate libmysqlclieent:
[root@gadgetwiz maildrop-1.3.7]# locate libmysqlclient /usr/lib/mysql/libmysqlclient.so.10.0.0 /usr/lib/mysql/libmysqlclient.so.10 /usr/lib/mysql/libmysqlclient_r.so.10.0.0 /usr/lib/mysql/libmysqlclient_r.so.10 /usr/lib/mysql/libmysqlclient.a /usr/lib/mysql/libmysqlclient.so /usr/lib/mysql/libmysqlclient_r.a /usr/lib/mysql/libmysqlclient_r.so
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/ld.so.conf file.
Basically, the ld.so.conf 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/ld.so.hints 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 @@ USEMYSQL=0 -LIBMYSQL="-lmysqlclient -lz" +LIBMYSQL="-lmysqlclient -lz -L/usr/lib/mysql" USENSL=no saveLIBS="$LIBS"' | patch -p0