# yum install o
PEnssl* openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel e
xpat-devel gettext-devel
# wget http://ftp.ruby-lang.
org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
# tar zxvf ruby-2.0.0-p247.tar.gz
# cd ruby-2.0.0-p247
#
./configure --enable
-sha
red --enable-
pthread --
PRefix=/usr/local/ruby
# make
&& make install
ossl_pkey_ec.c:815: error: ‘EC_GROUP_new_curve_G
f2m' undeclared (
First use in this function)
# cd ruby-2.0.0-p247
# wget --no-check-certificate https://bugs.ruby-lang.org/projects/ruby
-trunk/repository/
revisions/41808/raw/ext/openssl/ossl_pkey_ec.c
# wget --no-check-certificate https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/41808/raw/
test/openssl/test_pkey_ec.rb
# mv ext/openssl/ossl_pkey_ec.c&nbs
p; ext/openssl/ossl_pkey_ec.c.bak
# cp ossl_pkey_ec.c ext/openssl/
# mv test/openssl/test_pkey_ec.rb test/openssl/test_pkey_ec.rb.bak
# cp test_pkey_ec.rb test/openssl/
# echo "PATH=$PATH:/usr/local/ruby/bin;
export PATH" >> /etc/profile
# source /etc/profile
# ruby -v
——————————————————————————
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
——————————————————————————
# gem --version
——————————————————————————
2.0.3
——————————————————————————
# irb
——————————————————————————
irb(m
ain):001:0> 3+5
=> 8
irb(main):002:0> puts "hello world!"
hello world!