Installation ruby-1.8.7 a compile error. The following: ossl_pkey_ec.c:815:error: ' ec_group_new_curve_gf2m ' undeclared (first use of this function) Ossl _pkey_ec.c:815:error: (Each undeclared identifier are reported only onceossl_pkey_ec.c:815:error:for each function it AP Pears in.) MAKE[1]: * * * [OSSL_PKEY_EC.O] Error 1make[1]: Leaving directory '/home/vagrant/ruby-1.8.7-p357/ext/openssl ' make: * * * [ All] Error 1 workaround is as follows: VI ~/install/ruby-1.8.7-p357/ext/openssl/ossl_pkey_ec.c 4 places below, + number is added: method = Ec_gfp_mont_method (); &N BSP;} else if (id = = s_gfp_nist) { method = Ec_gfp_nist_method (); + #if!defined (openssl_no_ec2m) &NB SP;} else if (id = = s_gf2m_simple) { method = Ec_gf2m_simple_metho D (); +   #endif } &NBSP ; if (method) { if (id = = S_GFP) { &N Bsp new_curve = ec_group_new_curve_gfp;+ #if!defin Ed (openssl_no_ec2m) } else if (id = = s_gf2m) { & nbsp new_curve = ec_group_new_curve_gf2m;+ #endif &NB Sp } else { rb_raise (RB _eargerror, "unknown symbol, must BE:GFP or:gf2m"); } after the change, then re- The new compilation is as follows:./configure--prefix=/usr/local/rubymakemake Install and then view the ruby version number:/usr/local/ruby/bin/ruby-vruby 1.8.7 ( 2012-02-08 PatchLevel 358) [x86_64-linux] OK, problem solved.
A openssl error occurred in Linux compilation ruby1.8.7