The Linux compilation ruby1.8.7 has a OpenSSL error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.