EMQ X mac系统安装

问题描述

目前emqx用的是zip包,openssl也安装响应版本,无法启动

环境信息

  • EMQ X 版本:emqx-macosx-v4.1.5
  • 操作系统及版本:mac OS 10.15.7
  • 其他

相应的配置文件内容

bogon:emqx mac$ otool -L lib/crypto-*/priv/lib/crypto.so
lib/crypto-4.6.5/priv/lib/crypto.so:
	/usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
bogon:emqx mac$ ls /usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib
/usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib

详细日志

启动打印信息:

bogon:emqx mac$ sudo ./bin/emqx console
Password:
Exec: /Users/mac/Downloads/emqx/erts-10.7/bin/erlexec -boot /Users/mac/Downloads/emqx/releases/v4.1.5/emqx -mode embedded -boot_var ERTS_LIB_DIR /Users/mac/Downloads/emqx/erts-10.7/../lib -mnesia dir "/Users/mac/Downloads/emqx/data/mnesia/emqx@127.0.0.1" -config /Users/mac/Downloads/emqx/data/configs/app.2021.04.19.00.12.00.config -args_file /Users/mac/Downloads/emqx/data/configs/vm.2021.04.19.00.12.00.args -vm_args /Users/mac/Downloads/emqx/data/configs/vm.2021.04.19.00.12.00.args -start_epmd false -epmd_module ekka_epmd -proto_dist ekka -- console
Root: /Users/mac/Downloads/emqx
/Users/mac/Downloads/emqx
Erlang/OTP 22 [erts-10.7] [source] [64-bit] [smp:8:8] [ds:8:8:8] [async-threads:4] [hipe]

{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,crypto}}},{kernel,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,crypto}}},{kernel,start,[normal,[]]}}})

Crash dump is being written to: log/crash.dump...done

openssl版本信息:

bogon:emqx mac$ ls /usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib

/usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib

看看这个的输出呢 openssl version

bogon:emqx mac$ openssl version

LibreSSL 2.8.3

这个openssl版本不对,但是我自己已经在openssl官方下载1.1了,安装在指定目录了。为什么openssl版本还是1.1?

macdeMBP:emqx mac$ otool -L lib/crypto-/priv/lib/crypto.so*

lib/crypto-4.8.3/priv/lib/crypto.so:

/usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)

/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)

macdeMBP:emqx mac$ openssl version

OpenSSL 1.1.0 25 Aug 2016

macdeMBP:emqx mac$

这是我目前mac上边安装的openssl版本信息,start还是提示缺少openssl