Ruby:在CentOS6.2系统上编译ruby1.9.3版本出现错误:EC_GROUP_new_curve_GF2m

来源:互联网 发布:我的世界服务器linux 编辑:程序博客网 时间:2024/06/02 07:09

详细错误信息:

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.)

问题原因:

由于redhat新版本默认openssl的配置变更取消了对EC_xx的支持,所以出现该错误。


解决方法:

该问题在ruby网站上已经提交并有了补丁。

参见链接:https://bugs.ruby-lang.org/issues/8384


即修改ext/openssl/ossl_pkey_ec.c代码如下:



by iefreer



2 0
原创粉丝点击