我正在使用 Tsung 进行负载测试。我已经在 CentOS 6.4 和 openssl 1.0.1e-fips 上设置了 Erlang/OTP R16B03-1 和 Tsung 1.5.1。一切都已成功编译,除了为 Tsung 运行 ./configure 时,出现警告:
WARNING: ssl application is not working properly !!!
现在,当我运行 Tsung 来加载测试我的 https 服务器时,它会给出以下错误:
Unable to load crypto library. Failed with error: "load_failed, Failed to load NIF library: '/usr/local/lib/erlang/lib/crypto-3.2/priv/lib/crypto.so: undefined symbol: EC_GROUP_new_curve_GF2m'" OpenSSL might not be installed on this system.
我知道 Centos/RHEL 中的 openssl EC 加密问题(请参阅 http://erlang.org/pipermail/erlang-questions/2014-February/076760.html ),但没有找到该问题的解决方案。 我应该更新 openssl 还是重新编译没有 EC 选项的 Erlang?
最佳答案
我找到了!只需从源重新安装 erlang 即可。我下载了它的第 17 版。 http://www.erlang.org/download/otp_src_17.0.tar.gz 一切都很好! 另请检查一下: https://github.com/ngocdaothanh/tsart/blob/master/amazonlinux.md
除了 Erlang 和 Tsung 的版本之外,一切都很酷。所以我选择了erlang的17版本和Tsung的1.5.1。我花了将近2天的时间来配置它。
关于openssl - Tsung 在测试 https 时遇到 crypto.so 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26331480/