【发布时间】:2019-07-08 02:40:49
【问题描述】:
我无法从源代码安装 Mongooseim(最新)。
使用:
MongooseIM 3.2.0 (source code)
Mac OS 10.14.2
Erlang: 21.2
问题: 从源代码编译 Mongooseim 时,我的日志卡在链接 fast_tls.so 上并且执行停止。请参阅下面的屏幕截图。我确定 openssl 有问题。
已尝试的解决方案:
- 我已经安装了 openssl 并导出了所有标志,但仍然是同样的问题。
- 我已尝试从源代码安装 fast_tls。但这在openssl上也失败了。看截图
- openssl 版本的输出
//终端输出
$ openssl version -a
OpenSSL 1.0.2q 20 Nov 2018
built on: reproducible build, date unspecified
platform: darwin64-x86_64-cc
options: bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: clang -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/local/etc/openssl"
//截图
【问题讨论】:
-
which openssl的输出是什么? -
$which openssl/usr/local/opt/openssl/bin/openssl -
是不是和钥匙串证书有关,因为我删除了一些我觉得不需要的证书
-
接下来你要做
otool -L /usr/local/opt/openssl/bin/openssl,然后发布输出;该命令会告诉您库的位置。完成后,您可能会使用--openssldir=或LD_LIBRARY_PATH将编译器定向到该位置。 -
/usr/local/opt/openssl/bin/openssl: /usr/local/Cellar/openssl/1.0.2q/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/Cellar/openssl/1.0.2q/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
标签: macos openssl erlang mongoose-im