FreeBSD:更新LDAP后Postfix的问题

在服务器上我安装了openldap-server ,在这台电脑上已经安装了ldap客户端。 版本的openldap-client(2.4.16)比旧版本的openldap-server(2.4.21)还要更新客户端的版本。 OpenLDAP客户端与该服务器上的postfix一起工作,在所有更新后,postfix不能再次启动。 postfix停止时的错误是:

/libexec/ld-elf.so.1:未find共享对象“libldap-2.4.so.6”,“postfix”

与库的类别是libldap-2.4.so.7 ,但libldap-2.4.so.6从服务器中删除。 当我想卸载openldap-client的版本,系统写入

===> Deinstalling for net/openldap24-client OK, but when I start "make install" system write: ===> Installing for openldap-sasl-client-2.4.23 ===> openldap-sasl-client-2.4.23 depends on shared library: sasl2.2 - found ===> Generating temporary packing list ===> Checking if net/openldap24-client already installed ===> An older version of net/openldap24-client is already installed (openldap-client-2.4.21) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of net/openldap24-client without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop in /usr/ports/net/openldap24-client. *** Error code 1 Stop in /usr/ports/net/openldap24-client. 

端口更新没有帮助, 后缀写入错误

/libexec/ld-elf.so.1:未find共享对象“libldap-2.4.so.6”,“postfix”

您升级了OpenLDAP客户端,该客户端删除了旧版本的共享库。 Postfix是build立并链接到旧版本的共享库,因为它不再存在Postfix无法启动。

重新编译后缀(这将导致它链接到新版本的库),这个问题将消失。

将来你可以通过使用portupgrade来避免这样的问题(检查-r标志,它将recursion地重新生成依赖于正在升级的软件包)。