尝试从端口安装 Postfix 并收到此错误:
===> Compressing manual pages for cyrus-sasl-2.1.26_2
===> Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===> Registering installation for cyrus-sasl-2.1.26_2
===> Returning to build of postfix-2.9.4_2,1
Error: shared library "sasl2.2" does not exist
*** Error code 1
Stop in /usr/ports/mail/postfix.
*** Error code 1
Stop in /usr/ports/mail/postfix.
*** Error code 1
Stop in /usr/ports/mail/postfix.
ldconfig-r |删除 sasl [/usr/ports/mail/postfix] [12:49] [pts/0] 111:-lsasl2.3 => /usr/local/lib/libsasl2.so.3 297:-lsasldb.2 => /usr/local/lib/compat/pkg/libsasldb.so.2 312:-lsasl2.2 => /usr/local/lib/compat/pkg/libsasl2.so.2 318:-lsasldb.3 => /usr/local/lib/compat/pkg/libsasldb.so.3
答案1
请确保您portsnap fetch update
之前已经运行过。然后使用 升级不再是最新的端口pkg_version -l "<"
。
这应该可以解决你的问题。