1. 程式人生 > >Ruby 在CentOS6 2系統上編譯ruby1 9 3版本出現錯誤 EC GROUP new curve GF2m

Ruby 在CentOS6 2系統上編譯ruby1 9 3版本出現錯誤 EC GROUP new curve GF2m

               

詳細錯誤資訊:

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網站上已經提交併有了補丁。

即修改ext/openssl/ossl_pkey_ec.c程式碼如下:

by iefreer