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
1. Compiled and installed openssl 1.0.1c at /usr/local/ssl
2. cd <ruby source/ext/openssl
3. ruby extconf.rb --with-openssl-dir=/usr/local/ssl
4. make & make install
5. ruby -e "require 'openssl'"
6. 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 `<main>'
I am not sure what is wrong on soalris but these steps works on linux.
--Haribhau
···
--
Posted via http://www.ruby-forum.com/.