报错信息:
Error: ossl_pkey_ec.c:In functin 'ossl_ec_group_initialize':
ossl_pkey_ec.c:816:error: 'EC_GROUP_new_curve_GF2m' undeclard
(first use in this function) ossl_pkey_ec.c:816:error:
(Each undeclard indentifier is reported only once ossl_pkey_ec.c:816
error:for each function it appearts in.)
问题原因:
由于centos新版本默认openssl的配置变更取消了对EC_xx的支持,所以出现该错误。
解决方法:
该问题在ruby网站上已经提交并有了补丁。
参考连接:
https://bugs.ruby-lang.org/issues/8384
即修改ext/openssl/ossl_pkey_ec.c代码如下: