HI Guys,
I need help in compiling Ruby 1.9.3 with openssl1.0.1c. I had compiled
ruby with 1.0.0 initially but we wanted to support AES-CTR algorithm
which is available only in 1.0.c.
I performed below steps
- Compiled and installed openssl 1.0.1c at /usr/local/ssl
- cd <ruby source/ext/openssl
- ruby extconf.rb --with-openssl-dir=/usr/local/ssl
- make & make install
- ruby -e “require ‘openssl’”
- o/p:
/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require': ld.so.1: ruby: fatal: relocation error: file /usr/local/lib/ruby/site_ruby/1.9.1/i386-solaris2.11/openssl.so: symbol i2d_ECPKParameters: referenced symbol not found - /usr/local/lib/ruby/site_ruby/1.9.1/i386-solaris2.11/openssl.so (LoadError) from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from /usr/local/lib/ruby/site_ruby/1.9.1/openssl.rb:17:in<top (required)>' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from -e:1:in
’
I am not sure what is wrong on soalris but these steps works on linux.
–Haribhau