无法通过asdf与openssl安装Erlang(Ubuntu 18.04.1)

时间:2018-10-21 13:27:51

标签: linux ubuntu openssl erlang asdf-vm

我在Ubuntu 18.04.1。每当我尝试通过asdf安装任何版本的erlang时,都会收到以下消息:

APPLICATIONS DISABLED (See: /home/josh/.asdf/plugins/erlang/kerl-home/builds/asdf_18.0/otp_build_18.0.log)
 * crypto         : No usable OpenSSL found
 * jinterface     : No Java compiler found
 * ssh            : No usable OpenSSL found
 * ssl            : No usable OpenSSL found

我确认我已经安装了openssl(我已经运行apt-get install libssl-dev。我已经看到其他答案,建议使用--with-ssl标志作为kerl配置,因此我尝试运行KERL_CONFIGURATION_OPTIONS='--with-ssl=/usr/include/openssl',但是我仍然收到相同的消息。有什么想法可以解决此问题吗?

1 个答案:

答案 0 :(得分:1)

在Ubuntu上使用asdf安装时,除非您已自定义内容,否则无需指定任何自定义KERL_CONFIGURATION_OPTIONS标志。有几个命令可帮助您验证OpenSSL安装:

# Verify that's it on your path
$ openssl version

# See if you have more than one version installed and on your path
$ type -a openssl

如果看到安装了多个OpenSSL,则可能有问题。