WeBankBlockchain/WeCross

修改了OpenSSL的版本为1.1.1后启动Demo报错

wxl0357 opened this issue · 3 comments

Describe the bug
使用mac在执行wecross-demo/build_cross_groups.sh,WeCross-Account-Manager启动出现加密包相关报错,查看文档发现是因为我的OpenSSL的版本过高,我使用的是OpenSSL 3.x版本,但是因为之前配置了相关依赖,我的mac中包含多个OpenSSL的版本,我按照文档要求卸载了所有的OpenSSL版本,随后重装了1.1.1的版本,再启动时发现直接报Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib,具体报错信息在截图中。

To Reproduce
Steps to reproduce the behavior:

  1. 使用 rm -rf命令删除所有的openssl文件夹
  2. 使用 brew install openssl@1.1 重新安装1.1版本的openssl
  3. 按照安装提示在 .zshrc文件中配置相应的环境变量
  4. 查询openssl的版本显示为OpenSSL 1.1.1u
  5. 此时再运行 bash build_cross_groups.sh
  6. 报错Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib

Expected behavior
想知道这种情况应该怎么解决

Screenshots
image

Desktop (please complete the following information):

  • OS: [MACOS]
  • Runtime: [java]
  • Version [openjdk 1.8]

Additional context
Add any other context about the problem here.

应该是openssl的库已经坏了,查一下homebrew关于卸载openssl的步骤。

非常感谢,已经解决了

非常感谢,已经解决了

请问您是怎么解决的