You upgrade mysql and it removed a library that postfix depended on. (/ opt/local/lib/mysql5/mysql/libmysqlclient.16.dylib).

When you removed and re-installed postfix, it found the newer mysql library and worked again.

One way of dealing with this sort of thing would be to have a staging server where you can test upgrades before you push them to your production machine (or if you have a cluster, you might be able to remove one machine from the cluster, test the upgrade on it, and move it back into the cluster once you are confident that the upgrade worked).

On Apr 20, 2009, at 6:52 AM, Scott Haneda wrote:
I uninstalled postfix, and put it back in, this all went away. I would like to know what caused this, and how to avoid it. These are often going to be production servers, and things like this happening would be bad. If I know what is going on, I can prepare for them and make sure I do not mess up alone the way.

Thanks.

On Apr 20, 2009, at 3:11 AM, Scott Haneda wrote:

$port -v
MacPorts 1.710

$port installed | grep -i postfix
postfix @2.5.5_0+darwin_9+dovecot_sasl+ldap+mysql5+tls (active)

$whereis postfix
/usr/sbin/postfix
* Is whereis hard coded in standard paths, and that is not something I can change?

$which postfix
/opt/local/sbin/postfix

$echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ local/bin:/usr/X11/bin

$sudo /opt/local/sbin/postfix start
dyld: Library not loaded: /opt/local/lib/mysql5/mysql/ libmysqlclient.16.dylib
Referenced from: /opt/local/sbin/postfix
Reason: image not found
Trace/BPT trap

--
Daniel J. Luke
+========================================================+
| *---------------- [email protected] ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |
+========================================================+



Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to