【问题标题】:What is the status of SASL on macOS in 2019?2019 年 macOS 上的 SASL 状态如何?
【发布时间】:2019-08-09 22:53:53
【问题描述】:

我有一个我想在 macOS 上编译的 linux 应用程序。它依赖于 Cyrus SASL 库。

在编译过程中,我收到与 SASL 相关的弃用警告,但该应用程序可以编译并且似乎可以工作。

/Users/travis/build/apache/qpid-proton/c/src/sasl/cyrus_sasl.c:101:30: warning: 'sasl_errdetail' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
    const char* err = conn ? sasl_errdetail(conn) : sasl_errstring(r, NULL, NULL);

Linux 上的 Cyrus SASL 带有实用程序 saslpasswd2。这似乎在 macOS 上不存在。

我想问一下 Apple 推荐的在 macOS 上提供 SASL 的方法是什么,这将为我提供要编译的库和 saslpasswd2 实用程序。

【问题讨论】:

    标签: macos macos-mojave sasl cyrus


    【解决方案1】:

    可以使用 MacPorts 安装 Cyrus SASL,https://www.macports.org/

    sudo port install cyrus-sasl2
    

    完成后,/opt/local/sbin/saslpasswd2 将添加到系统中。因为/opt/local/{bin,sbin} 是 MacPorts 安装东西的默认路径。

    【讨论】:

      【解决方案2】:

      使用 Homebrew 安装时,位置为/usr/local/Cellar/cyrus-sasl/2.1.27/sbin/

      【讨论】:

        猜你喜欢
        • 2019-11-01
        • 1970-01-01
        • 2019-05-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-11-23
        • 2019-09-21
        相关资源
        最近更新 更多