【www.bbyears.com--ruby】
报错信息如下
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.)
产生问题的原因是:centos6.4的openssl的配置变更取消了对EC_GROUP_new_curve_GF2m的支持,所以出现该错误.
报错的文件为:ossl_pkey_ec.c
用find命令找到ossl_pkey_ec.c文件路径
find / -name ossl_pkey_ec.c
编辑文件ossl_pkey_ec.c,如下图所示,在相应位置添加红框内的代码即可
保存退出后,重新make