安装Erlang时“已为kerberos配置但未找到krb5.h”

acruukt9  于 2022-12-08  发布在  Erlang
关注(0)|答案(2)|浏览(193)

我正在尝试在我的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"

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

plicqrtu

plicqrtu1#

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

2wnc66cl

2wnc66cl2#

在基于Debian的发行版下,还需要安装libkrb5-dev

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

相关问题