"configured for kerberos but no krb5.h found" 安装 Erlang 时

"configured for kerberos but no krb5.h found" while installing Erlang

我正在尝试在我的 MAC 中安装 Erlang build 17,但出现以下错误。

 * crypto         : OpenSSL is configured for kerberos but no krb5.h found
 * jinterface     : Java compiler disabled by user
 * odbc           : ODBC library - header check failed
 * ssh            : OpenSSL is configured for kerberos but no krb5.h found
 * ssl            : OpenSSL is configured for kerberos but no krb5.h found

DOCUMENTATION INFORMATION (See: /Users/xxx/.kerl/builds/17/otp_build_17.5.log)
 * documentation  : 
 *                  fop is missing.
 *                  Using fakefop to generate placeholder PDF files.

我的 .kerlrc 文件包含以下选项

CPPFLAGS="-march=native -mtune=native -O3 -g"
KERL_CONFIGURE_OPTIONS="--with-ssl=/usr/bin --without-javac --enable-darwin-64bit --enable-shared-zlib
--enable-dynamic-ssl-lib --enable-hipe --enable-smp-support --enable-threads --enable-kernel-poll --with-wx"
KERL_DEFAULT_INSTALL_DIR="$KERL_BASE_DIR/installs"

有人知道如何解决这个问题吗?

 KERL_CONFIGURE_OPTIONS="--disable-hipe --enable-smp-support --enable-threads --enable-kernel-poll
--enable-darwin-62bit --with-ssl=/usr/local/Cellar/openssl/1.0.2h_1"

--with-ssl="path/openssl" 选项应该修复它。

我也按照本教程安装 javac:How to Install JDK 8 (on Windows, Mac & Ubuntu) and Get Started with Java Programming

在 Debian-based 发行版下 libkrb5-dev 也需要安装:

sudo apt update && sudo apt -y install libkrb5-dev